Sha256: b09f70d90007d4726a43d420ba92929f8e39da00a74d5cd7b0f45162fc1868b3

Contents?: true

Size: 267 Bytes

Versions: 4

Compression:

Stored size: 267 Bytes

Contents

#ifndef UTIL_H
#define UTIL_H

/*** Utility functions ***/

#define ALLOC(type) ALLOC_N(type, 1)
#define ALLOC_N(type, n) ((type*) xmalloc(sizeof(type) * (n)))
void *xmalloc(size_t);

#define STARTS_WITH(x, y) (strncmp((x), (y), strlen(y)) == 0)

#endif /* UTIL_H */

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mockspotify-0.1.2 src/util.h
mockspotify-0.1.1 src/util.h
mockspotify-0.1.0 src/util.h
mockspotify-0.0.1 src/util.h