Subversion Repositories IRCServ

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

/* $Id: util.c 5 2024-08-25 11:58:10Z nishi $ */

#include "is_util.h"

#include <string.h>
#include <stdlib.h>

char* is_strcat(const char* a, const char* b) {
        char* str = malloc(strlen(a) + strlen(b) + 1);
        memcpy(str, a, strlen(a));
        memcpy(str + strlen(a), b, strlen(b));
        str[strlen(a) + strlen(b)] = 0;
        return str;
}