/* utility helpers * * This file is part of nsnsgenbind. * Licensed under the MIT License, * http://www.opensource.org/licenses/mit-license.php * Copyright 2015 Vincent Sanders */ #ifndef nsgenbind_utils_h #define nsgenbind_utils_h FILE *genb_fopen(const char *fname, const char *mode); #ifdef _WIN32 #define NEED_STRNDUP 1 char *strndup(const char *s, size_t n); #endif #define SLEN(x) (sizeof((x)) - 1) #endif