Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xbdmenu.git;a=commitdiff;h=f1fc4e883d1e17716fce05ee623cad279549ae74

commit f1fc4e883d1e17716fce05ee623cad279549ae74
Author: James Buren <r...@frugalware.org>
Date:   Tue Jun 9 00:04:40 2009 -0500

util.c
* remove strend

diff --git a/util.c b/util.c
index 28b2500..5d918fd 100644
--- a/util.c
+++ b/util.c
@@ -82,28 +82,3 @@ char *strstrip(char *str) {

return str;
}
-
-/* Fill dest with n characters from end of src, converting to lowercase */
-char *strend(char *dest,const char *src,int n) {
-       int l, i;
-
-       /* Check for invalid arguments */
-       if( !dest || !src || n <= 0 ) {
-               return NULL;
-       }
-
-       l = strlen(src);
-
-       /* Check if src has enough characters to copy from */
-       if( l < n ) {
-               return NULL;
-       }
-
-       for( i = 0 ; i < n ; ++i ) {
-               dest[n-1-i] = tolower( src[l-1-i] );
-       }
-
-       dest[n] = '\0';
-
-       return dest;
-}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to