syslinux/com32/lib/lstrdup.c
<<
>>
Prefs
   1/*
   2 * lstrdup.c
   3 */
   4
   5#include <string.h>
   6#include <stdlib.h>
   7#include <com32.h>
   8
   9char *lstrdup(const char *s)
  10{
  11    int l = strlen(s) + 1;
  12    char *d = lmalloc(l);
  13
  14    if (d)
  15        memcpy(d, s, l);
  16
  17    return d;
  18}
  19
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.