Questions tagged [c]

0 votes
0 replies
how to change value of somthing in the array using pointer without using square brackets [closed]
it gives me the error of not being able to use the code because of the pointer :) #include <stdio.h> #define LENGTH 31 void get_boom_numb...
asked 4 months ago
3 votes
1 replies
How to pause a timer created with CreateTimerQueueTimer
I need to pause a timer created using CreateTimerQueueTimer function of win32 API but I can't find a way to pause the timer. Does anybody knows i...
asked 4 months ago
1 votes
1 replies
Why does SIGINT stop sleep more than one time?
I don't understand why after the first execution of kill function the sleep function doesn't pause the parent process. After the SIGINT has been...
asked 4 months ago
-2 votes
1 replies
How can I read data from file ? I can't fix it [closed]
I record students informations to txt file but when I want to read data's from file just read information's in the first row. Also I calculate t...
asked 4 months ago
-4 votes
1 replies
How to replace a multi-character character constant with one character [closed]
I'm attempting to replace '%7C' with a '|' in C but i'm getting a multi-character character constant warning. I was wondering if it was possible...
asked 4 months ago
0 votes
1 replies
Trouble with translation of typedef between C to D
I'm new on D programming and I am trying to translate a code from C to D, the actual line that I am having trouble is typedef double Vec __attr...
c d
asked 4 months ago
0 votes
3 replies
Why can't I assign the value of the PID chunk of the FS register to an unsigned int?
Short description (32 bit build) Why does this throw an improper operand error? unsigned int GetPID() { unsigned int id; __asm {...
asked 4 months ago
0 votes
1 replies
Running a compiled c program (or .o) in an iOS app?
I have a program written in c that I want to run in an iOS app. The program takes as parameters a path to an image, processes it and outputs anot...
asked 4 months ago
1 votes
2 replies
How to make Windows console cursor jump to next line at the end of the line
I am having problems with a terminal emulator I am working on, and I have managed to narrow down the problem to a weird cursor behavior in the Wi...
asked 4 months ago
0 votes
1 replies
How to get the URL from a localhost server without using libcurl
I've made a custom HTTP server that serves an HTML page with some text, an input text box for entering a command, and a submit button. Upon rece...
asked 4 months ago
0 votes
1 replies
Scanf in visual studio not accepting multiple cases of characters
I'm creating a conversion project for letters/numbers ASCII table. My code is supposed to be 'interactive', so the user would type 'y' or 'n' to...
asked 4 months ago
0 votes
1 replies
Why do the functions get skipped over without being read?
Im trying to write code so that it will open a file (worker and benefits) and then display them when asked at the start. I can do this but I woul...
asked 4 months ago
2 votes
3 replies
How to replace a part of a string with another substring
I need the string "on" to be replaced with "in", strstr() function returns a pointer to a string so i figured assigning the new value to that poi...
asked 4 months ago
1 votes
2 replies
Scanning numbers and adding them to list & scanning answer and adding it to variable
The main point is that I want to add numbers to array while the answer is "y". When I input 1 2 3 4 5 6, it only adds last 3 digits to array (so,...
asked 4 months ago
0 votes
1 replies
send data lwip STM32 PC
I am trying to send or receive data from STM32f(via raw lwip) to computer. I connected stm32f device to modem and send "ping" and it is ok.dhcp i...
asked 4 months ago
2 votes
1 replies
Compile all necessary files with gcc
I’m quite new to C and the gcc compiler. I have a project where I include some other .h files. In that files there are include from more own .h f...
asked 4 months ago
0 votes
1 replies
Workqueue starts, interrupted, and never finished causing CPU stall
Providing a minimal code example will be difficult but I'll provide some sudo code to hopefully get the point/question across. TL;DR: My workque...
asked 4 months ago
0 votes
3 replies
C: print an integer array as binary data
I want to record data from a microphone using alsa. This command: int buf[4096]; memset(buf, 0, sizeof(buf)); snd_pcm_readi(capture_handle, buf,...
asked 4 months ago
0 votes
2 replies
How to read rules(definitions) from files in flex?
I have been creating token definitions in my .l file. Due to large amount to dataset, it is getting little tedious. Is there any way to read all...
asked 4 months ago
0 votes
1 replies
How to display the total sum and calculations from an input in C
I'm doing an assessment and have to write a short program in C to enter vertices and side size to display perimeter and area of a polygon. When...
asked 4 months ago
0 votes
0 replies
receiving arabic character from socket in C
I have an application written in ANSI C, the application is receiving messages through a socket, messages contains mixed arabic and english chara...
asked 4 months ago
0 votes
0 replies
Where to put code files in Xenomai operating system on Beaglebone Black [closed]
I have two Beaglebone Black with Xenomai real time operating system. I need to send Ethernet frames from one BBB to the other BBB. I already got...
asked 4 months ago
0 votes
3 replies
Is the first variable address fixed in main function?
When I was trying to print the address of the first variable in main function, I found that the result is always same after running few times. Wh...
c
asked 4 months ago
0 votes
1 replies
Uncaught TypeError: Module.cwrap is not a function
I need to decode h264 data at browser side for that I am using openh264 library build in web Assembly using emscripten. I have build it successfu...
0 votes
0 replies
Linux ioctl for tty gives EPERM
I try to implement a getty program (the program, which acquires a specific tty, sets it to stdin, stdout and stderr and executes the login proces...
asked 4 months ago