2019-10-30 21:58:18 +11:00
|
|
|
/*
|
2019-11-01 01:47:54 +11:00
|
|
|
* various file functions
|
2019-10-30 21:58:18 +11:00
|
|
|
*/
|
|
|
|
|
2019-11-01 01:47:54 +11:00
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/* two arbitrary magic number */
|
|
|
|
#define SZ_TEXT 20
|
|
|
|
#define SZ_PATH 400
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char key;
|
|
|
|
int flags;
|
|
|
|
char text[SZ_TEXT+1];
|
|
|
|
char path[SZ_PATH+1];
|
|
|
|
} SampleRef;
|
|
|
|
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
|
2019-10-30 21:58:18 +11:00
|
|
|
void dump(unsigned char *ptr);
|
|
|
|
|
|
|
|
char *rtrim(char *src);
|
|
|
|
char *ltrim(char *src);
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------- */
|