patch-2.1.128 linux/lib/vsprintf.c
Next file: linux/mm/filemap.c
Previous file: linux/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sun Nov 8 14:06:18 1998
- Orig file:
v2.1.127/linux/lib/vsprintf.c
- Orig date:
Thu Mar 26 15:57:06 1998
diff -u --recursive --new-file v2.1.127/linux/lib/vsprintf.c linux/lib/vsprintf.c
@@ -39,6 +39,13 @@
return result;
}
+long simple_strtol(const char *cp,char **endp,unsigned int base)
+{
+ if(*cp=='-')
+ return -simple_strtoul(cp+1,endp,base);
+ return simple_strtoul(cp,endp,base);
+}
+
/* we use this so that we can do without the ctype library */
#define is_digit(c) ((c) >= '0' && (c) <= '9')
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov