MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / strcpy

Method strcpy

source/kernel/kmemory.cpp:356–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void KMemory::strcpy(U32 address, const char* str) {
357 if (!str) {
358 return;
359 }
360
361 while (true) {
362 writeb(address, *str);
363 if (*str == 0) {
364 break;
365 }
366 address++;
367 str++;
368 }
369}
370
371void KMemory::memset(U32 address, char value, U32 len) {
372 performOnMemory(address, len, false, [value] (U8* ram, U32 len) {

Callers 10

x11_XIQueryDeviceFunction · 0.80
syscall_getxattrFunction · 0.80
syscall_lgetxattrFunction · 0.80
syscall_fgetxattrFunction · 0.80
unameMethod · 0.80
writeStackStringFunction · 0.80
writeRecordFunction · 0.80
getcwdMethod · 0.80
ioctlMethod · 0.80
ioctlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected