Skip to content

Commit

Permalink
Get rid of my_strcat()
Browse files Browse the repository at this point in the history
It's not used anywhere, and a standard C lib equivalent exists
  • Loading branch information
gvissers committed Sep 18, 2015
1 parent 810b0c3 commit b574f25
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
10 changes: 0 additions & 10 deletions asc.c
Expand Up @@ -232,16 +232,6 @@ void my_strncp (char *dest, const char *source, size_t len)
*dest = '\0';
}

void my_strcat(char *dest,const char * source)
{
int i,l,dl;

l=strlen(source);
dl=strlen(dest);
for(i=0;i<l;i++)dest[dl+i]=source[i];
dest[dl+i]='\0';
}

Sint32 my_strncompare(const char *dest, const char *src, Sint32 len)
{
int i;
Expand Down
12 changes: 0 additions & 12 deletions asc.h
Expand Up @@ -205,18 +205,6 @@ void my_strcp(char *dest,const char * source);
*/
void my_strncp (char *dest, const char *source, size_t len);

/*!
* \ingroup misc_utils
* \brief The function concencates the source string to the dest string
*
* The function concencates the source string to the dest string and sets a terminating \\0
*
* \param dest The destination string
* \param source The source string
* \todo Err, use strcat instead...
*/
void my_strcat(char *dest, const char * source);

/*!
* \ingroup misc_utils
* \brief Compares n bytes of the 2 strings (case insensitive)
Expand Down

0 comments on commit b574f25

Please sign in to comment.