Add errors
and prepare for file menu more and fix that you can't go left right when going up down
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "utils.h"
|
||||
#include <string.h>
|
||||
#include <utils/types.h>
|
||||
#include <mem/heap.h>
|
||||
|
||||
char *CpyStr(const char* in){
|
||||
@@ -8,4 +9,15 @@ char *CpyStr(const char* in){
|
||||
out[len] = 0;
|
||||
memcpy(out, in, len);
|
||||
return out;
|
||||
}
|
||||
|
||||
void MaskIn(char *mod, u32 bitstream, char mask){
|
||||
u32 len = strlen(mod);
|
||||
for (int i = 0; i < len; i++){
|
||||
if (bitstream & 1)
|
||||
*mod = mask;
|
||||
|
||||
bitstream >>= 1;
|
||||
mod++;
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
#include <utils/types.h>
|
||||
|
||||
char *CpyStr(const char* in);
|
||||
char *CpyStr(const char* in);
|
||||
void MaskIn(char *mod, u32 bitstream, char mask);
|
||||
Reference in New Issue
Block a user