Question about "Sub memcpy ..." - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Question about "Sub memcpy ..." (/showthread.php?tid=2860) |
Question about "Sub memcpy ..." - Kernelpanic - 07-12-2024 While reading the wiki I came across Offset(function): https://qb64phoenix.com/qb64wiki/index.php/OFFSET_(function) The sub "memcpy" is apparently a fixed procedure, because when I changed the name there was an error during compilation. What is this "memcpy"? Hard-wired? I couldn't find anything about it in the wiki. Code: (Select All)
Quote:internal\c\c_compiler\bin\c++.exe -Wl,--stack,26777216 -std=gnu++17 -fno-strict-aliasing -Wno-conversion-null -DGLEW_STATIC -DFREEGLUT_STATIC -Iinternal\c\libqb/include -Iinternal\c/parts/core/freeglut/include -Iinternal\c/parts/core/glew/include -DDEPENDENCY_NO_SOCKETS -DDEPENDENCY_NO_PRINTER -DDEPENDENCY_NO_ICON -DDEPENDENCY_NO_SCREENIMAGE internal\c/qbx.cpp -c -o internal\c/qbx.oThat is OK. Code: (Select All)
RE: Question about "Sub memcpy ..." - Pete - 07-12-2024 MEMCPY() is a C++ statement. My guess is you may be correct is presuming it is 'hard copied' as a C++ library function. Pete RE: Question about "Sub memcpy ..." - Kernelpanic - 07-12-2024 (07-12-2024, 05:36 PM)Pete Wrote: MEMCPY() is a C++ statement. My guess is you may be correct is presuming it is 'hard copied' as a C++ library function.Ah thanks, that explains the error message. RE: Question about "Sub memcpy ..." - Kernelpanic - 07-12-2024 Yes, memcpy() is a C function: Code: (Select All)
RE: Question about "Sub memcpy ..." - SMcNeill - 07-12-2024 Not to be confused with _MEMCOPY, which is one of our built-in mem commands: https://qb64phoenix.com/qb64wiki/index.php/MEMCOPY RE: Question about "Sub memcpy ..." - Kernelpanic - 07-12-2024 (07-12-2024, 06:50 PM)SMcNeill Wrote: Not to be confused with _MEMCOPY, which is one of our built-in mem commands: https://qb64phoenix.com/qb64wiki/index.php/MEMCOPYYes, thanks! I looked at everything, but couldn't find it using memcpy. |