File: xmalloc.h

package info (click to toggle)
yafc 1.1.1.dfsg.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,236 kB
  • ctags: 1,679
  • sloc: ansic: 19,338; sh: 10,365; makefile: 155; perl: 38; ruby: 33
file content (27 lines) | stat: -rw-r--r-- 803 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* $Id: xmalloc.h,v 1.4 2003/07/12 10:25:41 mhe Exp $
 *
 * xmalloc.h -- wrapper for malloc etc.
 *
 * Yet Another FTP Client
 * Copyright (C) 1998-2001, Martin Hedenfalk <mhe@stacken.kth.se>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version. See COPYING for more details.
 */

#ifndef XMALLOC_H_INCLUDED
#define XMALLOC_H_INCLUDED

#include <stdio.h>

void *xmalloc(size_t size);
void *xrealloc(void *ptr, size_t size);
char *xstrdup(const char *s);
char *xstrndup(const char *s, size_t n);
char *xstrncpy(char *dest, const char *src, size_t n);
int xstrcmp(const char *a, const char *b);

#endif