git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@689 ec53bebd-3082-4978-b11e-865c3cabbd6b
		
			
				
	
	
		
			18 lines
		
	
	
		
			242 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			242 B
		
	
	
	
		
			C
		
	
	
	
	
	
#ifdef HAVE_CONFIG_H
 | 
						|
#include <config.h>
 | 
						|
RCSID("$Id$");
 | 
						|
#endif
 | 
						|
#include <stdlib.h>
 | 
						|
#include <string.h>
 | 
						|
 | 
						|
#ifndef HAVE_STRDUP
 | 
						|
char *
 | 
						|
strdup(const char *old)
 | 
						|
{
 | 
						|
	char *t = malloc(strlen(old)+1);
 | 
						|
	if (t != 0)
 | 
						|
		strcpy(t, old);
 | 
						|
	return t;
 | 
						|
}
 | 
						|
#endif
 |