Initialize `scores` array correctly
[oggquiz.git] / common.h
blob8209f12990b742a73c91e5b30bf350baea09d5df
1 /*-
2 * "THE BEER-WARE LICENSE" (Revision 42):
3 * <tobias.rehbein@web.de> wrote this file. As long as you retain this notice
4 * you can do whatever you want with this stuff. If we meet some day, and you
5 * think this stuff is worth it, you can buy me a beer in return.
6 * Tobias Rehbein
7 */
9 enum {
10 FILENAMELEN = 1024,
11 OPTIONLEN = 64,
12 ARTISTLEN = 128,
13 ALBUMLEN = 128,
14 TITLELEN = 128
17 #define SAFE_STRNCPY(dst, src, len) do { \
18 strncpy(dst, src, (len)-1); \
19 dst[(len)-1] = '\0'; \
20 } while (0)