/*
# stringUtil.c  1.1
# The latest update : 6/20/96 at 00:07:21
#
#@(#) stringUtil ver 1.1
#@(#) Created by 
#@(#)
#@(#) Usage : stringUtil 
#@(#) Attention
#@(#)
*/
static char __sccs_id[] = "@(#)stringUtil ver1.1; Date:96/06/20 @(#)";
#include "../inc/String.h"

long
stringLength(String s) 
{
	String stmp;

	stmp=s;
	while(NULL!=*stmp) {
		stmp++;
	}
	return (stmp-s);
}

long
stringCopy(String dst, String src, long n)
{
	String stmp;
	String dtmp;

	stmp = src;
	dtmp = dst;
	while(NULL!=*stmp && stmp-src<n) {
		*dtmp = *stmp;
		stmp++;
		dtmp++;
	}
	*dtmp = NULL;
	return (stmp-src);
}
