source: buchla-68k/libsm/strcpy.c@ 210d896

Last change on this file since 210d896 was dade7a0, checked in by Thomas Lopatic <thomas@…>, 7 years ago

No more warnings in libsm.

  • Property mode set to 100644
File size: 421 bytes
RevLine 
[f40a309]1/*
2 =============================================================================
3 strcpy.c -- copy string
4 Version 1 -- 1987-06-12
5
6 Copy string s2 to s1. s1 must be large enough.
7 return s1
8 =============================================================================
9*/
10
[b28a12e]11#include "ram.h"
[6262b5c]12
[7258c6a]13int8_t *strcpy(int8_t *s1, int8_t *s2)
[f40a309]14{
[7258c6a]15 register int8_t *os1;
[f40a309]16
17 os1 = s1;
18
[dade7a0]19 while ((*s1++ = *s2++))
[f40a309]20 ;
21
22 return(os1);
23}
Note: See TracBrowser for help on using the repository browser.