Logo Search packages:      
Sourcecode: likewise-open version File versions

char* string_truncate ( char *  s,
unsigned int  length 
)

Truncate a string at a specified length.

Definition at line 1394 of file util_str.c.

{
      if (s && strlen(s) > length)
            s[length] = 0;
      return s;
}


Generated by  Doxygen 1.6.0   Back to index