root/test/unit/strndup_chk/cmd.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

   1 #include <stdio.h>
   2 #include "cmem.h"
   3 
   4 int main(){
   5     char *dst, *src = "abcdefghijklmnopqrstuvwxyz";
   6     size_t len = 10;
   7 
   8     dst = strndup_chk(src, len, "strndup_chk unit test");
   9     printf("%s\n", dst);
  10     FREE(dst);
  11     return 0;
  12 }

/* [<][>][^][v][top][bottom][index][help] */