bwaichu@yahoo.com wrote:
This is the third time in this thread you have posted without providing
any context and you have already been warned about this by Keith
elsethread. I know that you know how to do this because your last post
quoted context. Continual blatant disregard for basic usenet etiquette
is likely to get you plonked.
[color=blue]
> The null termination is a trademark of the string library of functions
> in C.[/color]
Null termination is part of the definition of a string. The Standard
defines a string as "a contiguous sequence of characters terminated by
and including the first null character".
[color=blue]
> A lot of those functions are horribly written.[/color]
If they are "horribly written" in your implementation, that is no fault
of the Standard, or did you mean horribly designed?
[color=blue]
> You can write your own string functions to replace those that are
> broken like strcpy and strncpy,[/color]
Please explain how these functions are "broken", on second thought,
don't.
[color=blue]
> or you can spin your own type of string.[/color]
Your own type of string? You can create anything you like and call it
a string but that doesn't make it one.
[color=blue]
> You will have to include object files to have any portability.[/color]
This makes no sense at all. Object files are inherently not portable.
[color=blue]
> And the reason why I look at the assembly is to see how my compiler
> treats the C code I write. I don't care what the standard says if all
> the behaviors are not properly implemented. I know I am coding for a
> gcc compiler, so I need to know how that compiler follows the
> standards.[/color]
This is all very well discussed in the gcc documentation, I would think
it would be a little easier to consult that than to try to pick through
the machine generated assembly code. If you don't trust the
documentation, then why trust that the assembler will generate the
machine code properly? Do you check the machine code to see if the
assembler is doing what you expect?
[color=blue]
> If I strictly followed the CSS2 standard, mosts pages viewed in IE
> would have problems. You cannot all ways depend upon standards.[/color]
You cannot depend on applications that intentionally deviate from
standards, there is a difference here.
Robert Gamble