I mentioned in my original post that I was using ASCII pfiles.
so I no longer use fwrite/seek/etc.
Akuma.
At 07:05 PM 3/16/98 -0500, you wrote:
>On Mon, 16 Mar 1998, Akuma/Chris Baggett/DOOMer wrote:
>
>>You aren't understanding my problem.
>>I never mentioned anything about fwrite()ing anything.
>>
>>ok, i changed load_char to get rid of char_file_u
>>ie load_char is prototyped like this now.
>
>We're thinking you got rid of char_file_u completely. Do you mean you only
>removed it from load_char?
>
>I do have a question, just one.
>
>s/fwrite/fread/, then read my post again.
>
>int load_char(char *name, struct char_file_u * char_element)
>{
> int player_i;
>
> int find_name(char *name);
>
> if ((player_i = find_name(name)) >= 0) {
> fseek(player_fl, (long) (player_i * sizeof(struct char_file_u)),
SEEK_SET);
> fread(char_element, sizeof(struct char_file_u), 1, player_fl);
> return (player_i);
> } else
> return (-1);
>}
>
>Now then, how in the world do you expect this to work without char_file_u
>unless you changed your on disk format and char_data no longer uses
>pointers?
>
>--
>George Greer - Me@Null.net | Genius may have its limitations, but
stupidity
>http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
>
>
> +------------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
> +------------------------------------------------------------+
>
>
+------------------------------------------------------------+
| "The poets talk about love, but what I talk about is DOOM, |
| because in the end, DOOM is all that counts." - |
| Alex Machine/George Stark/Stephen King, The Dark Half |
| "Nothing is IMPOSSIBLE, Just IMPROBABLE" |
| "Easier Said Than Done, But Better Done Than Said..." |
+------------------------------------------------------------+
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST