Mercurial > hg > toybox
comparison lib/lib.h @ 102:aa4fa2543a65
Add atolx() which understands extensions for kilobytes and megabytes and such.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 16 Feb 2007 21:08:22 -0500 |
parents | 4c81e6375719 |
children | 19b5567f0a1b |
comparison
equal
deleted
inserted
replaced
101:ff85a83e7d7e | 102:aa4fa2543a65 |
---|---|
63 struct string_list *find_in_path(char *path, char *filename); | 63 struct string_list *find_in_path(char *path, char *filename); |
64 void utoa_to_buf(unsigned n, char *buf, unsigned buflen); | 64 void utoa_to_buf(unsigned n, char *buf, unsigned buflen); |
65 void itoa_to_buf(int n, char *buf, unsigned buflen); | 65 void itoa_to_buf(int n, char *buf, unsigned buflen); |
66 char *utoa(unsigned n); | 66 char *utoa(unsigned n); |
67 char *itoa(int n); | 67 char *itoa(int n); |
68 long atolx(char *c); | |
68 off_t fdlength(int fd); | 69 off_t fdlength(int fd); |
69 struct dirtree *read_dirtree_node(char *path); | 70 struct dirtree *read_dirtree_node(char *path); |
70 struct dirtree *read_dirtree(char *path, struct dirtree *parent); | 71 struct dirtree *read_dirtree(char *path, struct dirtree *parent); |
71 | 72 |
72 // getmountlist.c | 73 // getmountlist.c |