root/test/unit/strdup_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 
   7     dst = strdup_chk(src, "strdup_chk unit test");
   8     printf("%s\n", dst);
   9     FREE(dst);
  10     return 0;
  11 }

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