Okay, So I start working on this, I have code below; +I also have strlen("any string here") func that return len of any str in decimal just keep in your mind. I
I found this example to list all files on the SD Card: void printDirectory(File dir, int numTabs) { while(true) { File entry = dir.openNextFile(); if (!
I'm working with flex to generate custom language. I'm wondering if there is a possibility to add in some way a setting that will change a part of generated .le
I just installed an extension prettier in vscode to autoformat my code. However all the comments in my code are being moved towards the left. Which I don't want
How can I print out the current value at the stack pointer in C in Linux (Debian and Ubuntu)? I tried google but found no results.
I have to make an ordered linked list by organization name and then by size. I have to compare the organization name first and then I have to sort them by size
I am probably missing something simple here, but I was looking over some simple algorithms in C and have not been able to get the insertion sort in the code bel
I'm trying to interface a pressure sensor (MS5803-14BA) with my board (NUCLEO-STM32L073RZ). According to the datasheet (page 3), the pressure sensor requires s
Im trying to boot my OS to qemu with this code: qemu-system-i386 -kernel MyOS/mykernel.elf But I keep getting this error: qemu-system-i386: Error loading uncom
I'm trying to control my camera using libuvc. I tried this code I modified from the example: #include <libuvc/libuvc.h> #include <stdio.h> #include
I'm playing around with abstracting Windows, Linux, and Mac File IO calls into macros (to avoid C runtime, so no fopen, fclose, etc...). I've actually got quit
I'm trying to control my camera using libuvc. I tried this code I modified from the example: #include <libuvc/libuvc.h> #include <stdio.h> #include
I want to make a game using SDL2, but I'm unable to compile and/or run my code, please help! SDL2 is notoriously hard to set up, and it's often the first libr
I've created a class that handles sending data to a led matrix (max7219). This is what I was doing to create an instance of the LedControl class. LedControl l
I know that python int can be converted into an c int type using ctypes.But how do I convert a python int into an int16_t type? I have tried: import ctypes as
I am working with the xinu embedded operating system in c. I created a new header file and declared a struct: struct callout { uint32 time; /* Time of d
I know that python int can be converted into an c int type using ctypes.But how do I convert a python int into an int16_t type? I have tried: import ctypes as
I am working with the xinu embedded operating system in c. I created a new header file and declared a struct: struct callout { uint32 time; /* Time of d
I have difficulties to understand the icon system in GTK 4 (I work in C language). In GTK 2 and 3 that was easy to instruct the OS about the icon to use for dis
TLDR; Does the following code invoke undefined (or unspecified) behaviour ? #include <stdio.h> #include <string.h> void printme(void *c, size_t n