messy experimentation commit
This commit is contained in:
parent
ec15d449e1
commit
f6f8fa6a8f
13 changed files with 2472 additions and 426 deletions
22
src/common/utils.h
Normal file
22
src/common/utils.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
int prefixMatch(char* pre, char* str);
|
||||
int suffixMatch(char* suf, char* str);
|
||||
int exactMatch(char* str1, char* str2);
|
||||
int hide(char* file_name);
|
||||
|
||||
void getDisplayName(const char* in_name, char* out_name);
|
||||
void getEmuName(const char* in_name, char* out_name);
|
||||
|
||||
void normalizeNewline(char* line);
|
||||
void trimTrailingNewlines(char* line);
|
||||
|
||||
int exists(char* path);
|
||||
void touch(char* path);
|
||||
void putFile(char* path, char* contents);
|
||||
void getFile(char* path, char* buffer, size_t buffer_size);
|
||||
void putInt(char* path, int value);
|
||||
int getInt(char* path);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue