Mercurial > hg > toybox
view lib/pending.h @ 1243:eae29e8e2bc8 draft
_mkflags_ had an issue for generating FLAG_xxxx macros for long options.
Only the first __long__ option, without any __short__ option had a proper
flag value, rest all were defined to ZERO. Becaus the _flist_ was not moved
to the next in this case.
author | Ashwini Sharma <ak.ashwini1981@gmail.com> |
---|---|
date | Wed, 09 Apr 2014 07:40:02 -0500 |
parents | 80c9df5145fe |
children | 6f18a0845db3 |
line wrap: on
line source
// pending.h - header for pending.c // Unfortunately, sizeof() doesn't work in a preprocessor test. TODO. //#if sizeof(double) <= sizeof(long) //typedef double FLOAT; //#else typedef float FLOAT; //#endif // password.c #define MAX_SALT_LEN 20 //3 for id, 16 for key, 1 for '\0' #define SYS_FIRST_ID 100 #define SYS_LAST_ID 999 int get_salt(char *salt, char * algo); void is_valid_username(const char *name); int read_password(char * buff, int buflen, char* mesg); int update_password(char *filename, char* username, char* encrypted); // cut helper functions void daemonize(void); char *human_readable(unsigned long long size);