Ignore:
Timestamp:
Feb 17, 2007, 2:27:26 AM (13 years ago)
Author:
Bruno Cornec
Message:

Continue to merge trunk memory management enhancements for libmondo-tools.c & libmondo-string.c
Introduction + test of a new function mr_strcat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/test/test-mem.c

    r1140 r1178  
    11#include <stdio.h>
    22#include <stdlib.h>
     3#include <string.h>
    34#include <assert.h>
    45
     
    3132    mr_free(str);
    3233
     34    printf("*** Test with mr_strcat\n");
     35    mr_asprintf(&str,"Another Chain");
     36    mr_strcat(str," of trust");
     37    printf("Result: %s\n",str);
     38    mr_free(str);
     39
    3340    printf("*** Test with mr_getline/mr_free\n");
    3441    fd = mr_fopen("/etc/passwd","r");
Note: See TracChangeset for help on using the changeset viewer.