Re: Convert VB code to C code.
Richard Bos wrote:
[color=blue]
> John Smith <JSmith@mail.ne t> wrote:
>
>[color=green]
>>Essentially , strings in C are arrays of characters, terminated with a
>>NULL character.[/color]
>
>
> _Null_ character, please. Case is important. NULL is a macro expanding
> to a null pointer constant, not a character. (void *)0 is hardly a good
> string terminator, let alone '(void *)0'.[/color]
Well, according to standard NULL should expand to 0. (void*)0 is not
conformant IMHO (some pre C89 compilers did so)
rgds
Sebastian
Richard Bos wrote:
[color=blue]
> John Smith <JSmith@mail.ne t> wrote:
>
>[color=green]
>>Essentially , strings in C are arrays of characters, terminated with a
>>NULL character.[/color]
>
>
> _Null_ character, please. Case is important. NULL is a macro expanding
> to a null pointer constant, not a character. (void *)0 is hardly a good
> string terminator, let alone '(void *)0'.[/color]
Well, according to standard NULL should expand to 0. (void*)0 is not
conformant IMHO (some pre C89 compilers did so)
rgds
Sebastian
Comment