eqv.cc: expansion_want: avoid use of isl_map_n_out
[ppn.git] / strndup.c
blob5e6a851434c3e093fea3ee1d7bf5eefdcf5889a0
1 #include <string.h>
3 char *strndup(const char *s, size_t n)
5 char *d = (char*) malloc(n+1);
6 memcpy(d, s, n);
7 d[n] = '\0';
8 return d;