On Wed 2008-10-15 21:46:11 UTC+0100, Paul Herring ([EMAIL PROTECTED]) wrote:
> > char s[100];
> > s[0] = '\0';
> >
> > Or if you wanted to zero every element of the string, the portable way
> > is to use memset():
>
> my_zerostring(s);
>
> /* ... */
>
> void my_zerostring(char* s){
> > memset(s, '\0', sizeof s);
> }
>
> Might be portable, but not guaranteed to work.
Well strictly speaking s isn't a string there, it's a pointer to a
string...
