Back to index

lightning-sunbird  0.9+nobinonly
Functions
suggestmgr.cpp File Reference
#include "license.readme"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <stdio.h>
#include "suggestmgr.hxx"

Go to the source code of this file.

Functions

char * mystrdup (const char *)

Function Documentation

char* mystrdup ( const char *  )

Definition at line 53 of file csutil.cpp.

{
  char * d = NULL;
  if (s) {
     int sl = strlen(s);
     d = (char *) malloc(((sl+1) * sizeof(char)));
     if (d) memcpy(d,s,((sl+1)*sizeof(char)));
  }
  return d;
}

Here is the call graph for this function: