So, we're trying to build a Real-Time System with preemption within a process, executing each task as a separate thread. To build the GUI, SDL was the library c
Consider the following: int* x = calloc(3,sizeof(int)); x[3] = 100; which is located inside of a function. I get no error when I compile and run the progra
Okay, this really isn't as much a fizzbuzz question as it is a C question. I wrote some simple code in C for printing out fizzbuzz as is required. #include &
I am using a multifilesink element in C. multifilesink creates file names with an index, but I need file names with a timestamp. Conveniently, multifilesink sen
I'm new programming i started with c a month ago. I was writing code for my school homework and i was unable verify the gender and salary in the following code
I have predefined addresses (address1,address2 and address3) and i want to : If each address variables is equal to the first 6 variables of my data then i want
So, I just installed Eclipse for C/C++ and whenever I make a new project, I get two errors saying that the programs g++ and gcc are not in my PATH. All of the a
In GTK4 the icon system for displaying the apps have changed. In GTK3/GTK2 we could use simple commands like gtk_window_set_icon() or gtk_window_set_default_ico
Is there a tool to compare the control flow of some disassembly and some C? Here's my situation: I started with the disassembly (x86_64) of a function. In some
This is the C Program I have written to convert a Decimal number to it's equivalent Binary number. I have used Stack (implemented using array) and the following
I have the following piece of code: SOCKET sock = open_socket(szListenHost, iListenPort); if (sock > 0) { SOCKET client; struct sockaddr_in peeraddr
I am running my program on linux server and it was compiling and running fine then i made another directory and tried to compile it in that directory and it w
if anyone has ever wanted to try and rewrite a string function in C, would this code work to replace the standard strlen() function? I have no
Using C in a Windows in a Kernel Mode Driver using KMDF, how do I determine the owner a of file? I searched high and low but could not find any hint. Only C++
Code: #include <stdio.h> #include <stdlib.h> #include <conio.h> // to generate numbers void gen_data(int b[], int n) { int i; for (i =
I am having a problem about RTC Alarm configuration. First of all, I tried example code which is provided by Cube, and It works. But in my code, it doesn't work
I am having a problem about RTC Alarm configuration. First of all, I tried example code which is provided by Cube, and It works. But in my code, it doesn't work
This is the code that I used. It works perfectly, but I don't understand why it works. I just kept changing my original logic until I started using -1 in the co
I am trying to install the C/C++ development tools for Eclipse Luna. Taking reference from this page here, I navigated to Help> Install New Software> and
i have the following structure typedef struct { char data1[10]; char data2[10]; AnotherStruct stData; }MyData; for some reason the imple