Remove ucore_ prefix from headers and source files
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include "ucore/string.h"
|
||||
|
||||
char*
|
||||
uc_sprintbs(char *result, unsigned short value)
|
||||
{
|
||||
char *s = result;
|
||||
unsigned short mask = ~((unsigned short) (~0) >> 1);
|
||||
|
||||
if (s) {
|
||||
while (mask) {
|
||||
*s++ = (mask & value) ? '1' : '0';
|
||||
mask >>= 1;
|
||||
}
|
||||
*s = '\0';
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user