Changeset ebf8071 for lib/strndup.c
- Timestamp:
- 02/09/10 13:46:08 (12 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- eda2def
- Parents:
- f6730d8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/strndup.c
rf2f47a7 rebf8071 1 1 /* 2 * Written by mjl. Needs attributation? 2 * This file is part of libtrace 3 * 4 * Copyright (c) 2007,2008,2009,2010 The University of Waikato, Hamilton, 5 * New Zealand. 6 * 7 * Authors: Matthew Luckie 8 * 9 * All rights reserved. 10 * 11 * This code has been developed by the University of Waikato WAND 12 * research group. For further information please see http://www.wand.net.nz/ 13 * 14 * libtrace is free software; you can redistribute it and/or modify 15 * it under the terms of the GNU General Public License as published by 16 * the Free Software Foundation; either version 2 of the License, or 17 * (at your option) any later version. 18 * 19 * libtrace is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * GNU General Public License for more details. 23 * 24 * You should have received a copy of the GNU General Public License 25 * along with libtrace; if not, write to the Free Software 26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 27 * 28 * $Id$ 29 * 3 30 */ 31 4 32 #include "config.h" 5 33 … … 9 37 #include <errno.h> 10 38 #include <string.h> 39 40 /* Some systems don't include strndup as part of their standard C library, so 41 * we need to provide our own version. 42 * 43 * Full credit to Matthew Luckie, who wrote this particular version and allowed 44 * us to borrow it. 45 */ 11 46 12 47 char *strndup(const char *s, size_t size)
Note: See TracChangeset
for help on using the changeset viewer.