P
pete
RoS said:In data Fri, 14 Dec 2007 20:53:42 +0100, RoS scrisse:
yes i have seen it ...
void reverse(char *aa)
{char *a=aa, *b, t;
if(a==0||*a==0) return;
for( ; *a; ++a);
for(--a, b=aa; b<a; ++b, --a)
{t=*b; *b=*a; *a=t;}
}
this is my version whithout compile it nor debug it
OK
but str* were not implementation reserved?
No.
The rules are more complicated than that.
N869
7.26.10 General utilities <stdlib.h>
[#1] Function names that begin with str and a lowercase
letter (possibly followed by any combination of digits,
letters, and underscore) may be added to the declarations in
the <stdlib.h> header.
7.26.11 String handling <string.h>
[#1] Function names that begin with str, mem, or wcs and a
lowercase letter (possibly followed by any combination of
digits, letters, and underscore) may be added to the
when this case "*end!=0" is verified here? (never)
You are correct!