Use strdup() instead of strncpy().
This commit is contained in:
parent
a044f10411
commit
ca0e042952
2 changed files with 13 additions and 2 deletions
1
advent.h
1
advent.h
|
@ -87,6 +87,7 @@ extern lcg_state lcgstate;
|
|||
#define READ_MODE "rb"
|
||||
#define WRITE_MODE "wb"
|
||||
extern void* xmalloc(size_t);
|
||||
extern char* xstrdup(const char*);
|
||||
extern void packed_to_token(long, char token[6]);
|
||||
extern void newspeak(char*);
|
||||
extern void PSPEAK(vocab_t,int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue