Compare commits

..

No commits in common. "ccec181771fded751233c62677e0815d308c5428" and "574edcd4c585193ec5959d2318b1111673c34001" have entirely different histories.

2 changed files with 0 additions and 64 deletions

View file

@ -1,54 +0,0 @@
#include "axl_string.h"
u32 axl_strlen(const i8* s)
{
if(s == NULL)
{
return 0;
}
u32 len = 0;
while(s[len] != '\0')
{
len++;
}
return len;
}
i8* axl_strcpy(i8* dst, const i8* src)
{
if(dst == NULL || src == NULL)
{
return dst;
}
i8* start = dst;
while((*(dst++) = *(src++)) != '\0');
return start;
}
i8* axl_strncpy(i8* dst, const i8* src, u32 n)
{
if(dst == NULL || src == NULL)
{
return dst;
}
u32 i = 0;
for(; i < n && src[i] != '\0'; i++)
{
dst[i] = src[i];
}
for(; i < n; i++)
{
dst[i] = '\0';
}
return dst;
}

View file

@ -1,10 +0,0 @@
#ifndef AXL_STRING_H
#define AXL_STRING_H
#include "axl_types.h"
u32 axl_strlen(const i8* s);
i8* axl_strcpy(i8* dst, const i8* src);
i8* axl_strncpy(i8* dst, const i8* src, u32 n);
#endif // AXL_STRING