git.y1.nz

gbdk-2020

GameBoy Development Kit
download: https://git.y1.nz/archives/gbdk.tar.gz
README | Files | Log | Refs | LICENSE

gbdk-lib/libc/strcat.c

      1 #include <string.h>
      2 
      3 /*
      4  * Concatenate s2 on the end of s1. s1 must be large enough.
      5  * Return s1.
      6  */
      7 
      8 char *strcat(char *s1, const char *s2) {
      9     char *os1 = s1;
     10     while (*s1++) ;
     11     --s1;
     12     while (*s1++ = *s2++) ;
     13     return os1;
     14 }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.