Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

camlapack/s_copy.c

Go to the documentation of this file.
00001 #include "f2c.h"
00002 
00003 /* assign strings:  a = b */
00004 
00005 #ifdef KR_headers
00006 VOID s_copy(a, b, la, lb) register char *a, *b; ftnlen la, lb;
00007 #else
00008 void s_copy(register char *a, register char *b, ftnlen la, ftnlen lb)
00009 #endif
00010 {
00011 register char *aend, *bend;
00012 
00013 aend = a + la;
00014 
00015 if(la <= lb)
00016         while(a < aend)
00017                 *a++ = *b++;
00018 
00019 else
00020         {
00021         bend = b + lb;
00022         while(b < bend)
00023                 *a++ = *b++;
00024         while(a < aend)
00025                 *a++ = ' ';
00026         }
00027 }

Generated on Wed Sep 5 12:54:25 2007 for DSACSS Operational Code by  doxygen 1.3.9.1