Category "c"

Eclipse throwing "Unresolved inclusion error" on standard includes like "stdio.h"

After installing Eclipse freshly on Windows 10, I imported code to work on, but Eclipse started throwing the error "Unresolved inclusion error" on standard libr

Compile all C files in all of the children directories

So, I'm making a game with raylib and I need to compile all the .c files at once. The files are in separate folder inside the 1st one(Like "MainFolder/PlayerFil

Called function work at printf but not at arithmetic statement

I made a struct Triangle and I made a function to calculate p(perimeter/2). When I call the function inside printf it works. But when I call the same function a

I can't get an application to run on Windows startup ASM (Registry)

I am trying to translate a code made in C into assembly (FASM) but I can't get it to work. The code tries to create an entry in the registry so that when the ma

How to use unpacked data msgpack-c

I know how to unpack data but don't know how to use specific data from array or map, Here's the code : #include <msgpack.h> #include <stdio.h> int

Using cblas_dgemm in C and returning the product matrix in python

I am fairly new to parallel computing and we have been assigned to implement a matrix algorithm in C for later use in python. The problem comes when my function

How to link a objective-c library into a c/c++ project

I have this code: for the objective-c library GNUmakefile include $(GNUSTEP_MAKEFILES)/common.make LIBRARY_NAME = libteste libteste_OBJC_FILES = ./src/teste.m

Make Fread run until there's not enough bytes

So what im asking is how to make fread function loop until left with not enough bytes to look at. Is this okay? : while(fread(buffer, 512, 1, image)) == 512 );

Is the value stored on the stack? C

I'm currently studying C and im exploring how a generic Binary Tree is implemented and I stumbled upon this example. I have this node struct: struct node{const

Trying to create a loop that has an array continuously add data within it that the user creates

I just want to quickly note that im a third semester CS student so im fairly new to C and I just really want help on a project im creating for myself. Okay so b

Allocate memory for big .txt file in C

I need to allocate memory using malloc or calloc, for a large file that looks like this: 2357 VKLYKK 7947 1WTFWZ 3102 F2IXK3 2963 EXMW55 2865 50CJES 2510 8PC1AI

add-symbol-file for MCU app with offset on flash not showing any function names

I have an app running on a imx-rt-1024 nxp chip. I have a bootloader and the actual firmware app. My bootloader sits at 0x60000000 and my firmware app typically

String Pattern Matching in C

I was trying this pattern matching method in C but whenever I give all the input, the vscode terminal waits for a while and just stops the program without any w

Can I change the focus behavior of child windows?

Using fairly run of the mill window creation code for child windows I get (the infamous) "focus follows mouse" behavior in Xwindow, that is, the keyboard entrie

Is it possible to write different types of elements in the array?

I learn C programing now. Is it possible to write both numbers and letters in an array? Can you give an example if possible?

trouble with linked list bubble sort

I am a beginner learning to make bubble sort work with linked lists. I saw a geeksforgeeks page talking about this (https://www.geeksforgeeks.org/bubble-sort-fo

How to wait and READ char from stdin without waiting?

Hello There is a file where I draw picture using a loop. I want to exit loop when 'q' button is pressed. But I want the program is running during it is waiting

Assertion `argc >= 2' failed. Abandon (core dumped)

I'm traying to calculat the multiplication of tow matrix using OPENCL with C: ` #include <CL/cl.h> # include <stdio.h> # include <math.h> # in

Run powershell scripts from a C program

I'm creating a C program to run several powershell scripts. But when I run the command with the system function it opens the script in a txt file instead of run

Create a linked list with the characters of a string-C90

The problem : I am trying to create a linked list which contains the characters of a string in each field of the linked list(to get the distance of each letter