comparison srogue/rogue.h @ 190:f4f6734771e0

srogue: add and use md_fdopen(). The implementation was copied from rogue4. Using fdopen() is necessary because the scorefile needs both encread() and encwrite(). For some reason I have failed to discover, one of them uses FILE *'s and the other uses file descriptors.
author John "Elwin" Edwards
date Mon, 03 Aug 2015 09:27:43 -0400
parents 10c273a62228
children fb25a62680c7
comparison
equal deleted inserted replaced
189:7c552cbc6ad9 190:f4f6734771e0
38 38
39 int md_chmod(const char *filename, int mode); 39 int md_chmod(const char *filename, int mode);
40 char *md_crypt(const char *key, const char *salt); 40 char *md_crypt(const char *key, const char *salt);
41 int md_dsuspchar(void); 41 int md_dsuspchar(void);
42 int md_erasechar(void); 42 int md_erasechar(void);
43 FILE * md_fdopen(int fd, char *mode);
43 char *md_gethomedir(void); 44 char *md_gethomedir(void);
44 char *md_getusername(void); 45 char *md_getusername(void);
45 uid_t md_getuid(void); 46 uid_t md_getuid(void);
46 gid_t md_getgid(void); 47 gid_t md_getgid(void);
47 char *md_getpass(char *prompt); 48 char *md_getpass(char *prompt);