This is my first question so I apologize in advance if I leave anything out or am ambiguous on an item. Anyway, this is code I got form GeeksForGeeks.org (arr
For example: pthread_mutex_lock(); //Do something sleep(1); //causes issues waiting while holding lock pthread_mutex_unlock(); what is the so
I know there is the strcmp but it just let me compare two strings, And I need to compare a lot of them This one doesn't work: if(strcmp (resposta, "S" || "s"
Is it possible to assign some values to an array instead of all? To clarify what I want: If I need an array like {1,0,0,0,2,0,0,0,3,0,0,0} I can create it like:
So I'm trying to calculate, using C code the 64 bit virtual address of a function located in ntoskrnl.exe. I have, using C code, determined the base address of
I want to receive a string(pointer to characters) by UART using ATMEGA16. I burned this code on the kit then I used hyperterminal (realterm) and made a test to
I wanted to write a vi-like text editor for Linux in C (just as a personal exercise) and I realized that it would be really useful if I could print a character
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