StrAss.c

Go to the documentation of this file.
00001 /*
00002   (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
00003   See the copyright notice in the ACK home directory, in the file "Copyright".
00004 */
00005 
00006 /*
00007   Module:       assign string to character array, with possible 0-byte
00008                 extension
00009   Author:       Ceriel J.H. Jacobs
00010   Version:      $Header: /opt/proj/minix/cvsroot/src/lib/ack/libm2/StrAss.c,v 1.1 2005/10/10 15:27:46 beng Exp $
00011 */
00012 StringAssign(dstsiz, srcsiz, dstaddr, srcaddr)
00013         register char *dstaddr, *srcaddr;
00014 {
00015         while (srcsiz > 0) {
00016                 *dstaddr++ = *srcaddr++;
00017                 srcsiz--;
00018                 dstsiz--;
00019         }
00020         if (dstsiz > 0) {
00021                 *dstaddr = 0;
00022         }
00023 }

Generated on Fri Apr 14 22:57:25 2006 for minix by  doxygen 1.4.6