Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xbdmenu.git;a=commitdiff;h=ad0a22e2b168a3d4e4c59b97df95b435033deba9
commit ad0a22e2b168a3d4e4c59b97df95b435033deba9 Author: James Buren <[email protected]> Date: Wed Mar 11 18:53:44 2009 -0500 str.c * add comments for functions diff --git a/str.c b/str.c index 0e4d37a..1fdb28e 100644 --- a/str.c +++ b/str.c @@ -3,6 +3,7 @@ #include "mem.h" #include "str.h" +/* duplicate a string */ extern char *zstrdup(const char *str) { char *ptr = zmalloc(strlen(str)+1); @@ -10,6 +11,7 @@ extern char *zstrdup(const char *str) return(ptr); } +/* combine 2 strings */ extern char *strcmb(const char *str1,const char *str2) { char *ptr = zmalloc(strlen(str1)+strlen(str2)+1); @@ -18,6 +20,7 @@ extern char *strcmb(const char *str1,const char *str2) return(ptr); } +/* strip whitespace from a char array */ extern void strtrim(char str[]) { unsigned int l=0,t=0,i,len=strlen(str); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
