diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-07-30 23:32:47 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-07-30 23:32:47 +0000 |
commit | 12aec5738b8333a0dd676871bbfb6d6762ea87a5 (patch) | |
tree | b2bb99e19e6a771f01bb465f38f4d878d6a9d805 /src/utils.h | |
parent | 381d7232a0d63c0a145fae5e2c40e577ff2f44f1 (diff) |
Standardize state_file handling routines.
This way it's easier to manage and extend.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4494 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils.h b/src/utils.h index bc16905ea..02f70e946 100644 --- a/src/utils.h +++ b/src/utils.h @@ -29,6 +29,8 @@ #include <sys/stat.h> #include <fcntl.h> +#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) + char *myFgets(char *buffer, int bufferSize, FILE * fp); char *strDupToUpper(char *str); |