update isl for change in lexicographic optimization
[isa.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;