* lib/getdef.h, lib/getdef.c: Add getdef_ulong().

* lib/getdef.c: Added TODOs because of lack of error checking.
	* lib/getdef.c: The size argument of fgets is an int, not a
	size_t.
	* lib/getdef.c: Avoid multi-statements lines.
This commit is contained in:
nekral-guest
2008-06-13 21:35:22 +00:00
parent 5fc99a117b
commit c9679b7954
3 changed files with 40 additions and 3 deletions

View File

@@ -36,6 +36,7 @@
extern bool getdef_bool (const char *);
extern long getdef_long (const char *, long);
extern int getdef_num (const char *, int);
extern unsigned int getdef_ulong (const char *, unsigned long);
extern unsigned int getdef_unum (const char *, unsigned int);
extern char *getdef_str (const char *);
extern int putdef_str (const char *, const char *);