python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Clear the contents of a file using low level functions
I would like to write a function able to delete contents of files.
I have some thoughts of how to do it and here is the program that come up from them:
/*fclr - clear file contents*/
#include <fcnt...
user18530275
Votes: 0
Answers: 1
MIPS function syscall printing random number/memory address instead of parameter
I'm new to MIPS and I'm trying to write a very basic function that takes 4 numbers (so 4 parameters) and adds them together. I'm doing it so 3 of the numbers are hard-coded in memory and the 4th numbe...
TorusWithSprinkles
Votes: 0
Answers: 0
error: invalid static_cast from type ‘__m256i’ {aka ‘__vector(4) long long int’} to type ‘void*’
I'm trying to compile a piece of code where it calls uses static_cast to do something like the following:
__m256i values;
int64_t i = 1;
static_cast<void*>(values + i);
but this results i...
David
Votes: 0
Answers: 0
Loading a custom kernel causes VM to constantly reboot
I am working on a custom 32-bit OS, and i have coded a bare bones bootloader. I am trying to make it load a simple kernel that puts a char onto the screen, however, instead of getting the char i get a...
Nutty
Votes: 0
Answers: 2