??? 09/28/04 12:47 Read: times |
#78281 - RE: Keil strncpy function doubt????? Responding to: ???'s previous message |
"How different depends on function realization. Some compilers just stop to copy rest bytes after 0x00, another compilers fill rest area of destiantion with 0x00."
The correct ANSI behaviour is to fill the unused bytes with zero. Keil's implementation (quite sensibly, in my opinion) does not do this. It's just a pity they forgot to document this non-standard behaviour. |