diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2016-12-13 07:26:39 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2016-12-13 07:26:39 -0800 |
commit | 349ae02d9201dffcca98cdba270091d6dfe2d114 (patch) | |
tree | 3a70be22c67a3bf1a5f74bd98df5f7565cdbdf92 /util.h | |
parent | e195a20a3af0b2c34db115574e00894cf55bf0fa (diff) |
util: introduce ask_(string,num) helpers
quick and dirty stdio dialog helpers
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -22,5 +22,7 @@ (sizeof(_str) - 1) unsigned get_ncpus(void); +void ask_string(char *buf, int len, const char *prompt, const char *def); +void ask_num(int *res, int max, const char *prompt, int def); #endif /* _UTIL_H */ |