I'm using the C API for WordNet. When I try the following code with the word "dog", it correctly tells me that "dog" is a noun. However, if I pass "dogs", it re
Two C files have the same variable name declared differently. Can I force the compiler (Visual Studio or gcc) to prefer one declaration over the other? The scen
In C the function mktime() returns the epoch time according to the local timezone (the input struct is locally formatted). The function timegm() returns the epo
I'm trying to use pipe command and I can't understand how to. I've a lot of versions but I can't make it work. first of all the hierarchy: main prog - nicecmp -
I am trying to modify a user input string to call execvp in a future function. In my code I have a function which tokenises the user input such that if the user
I have a relay connected to GPIO26 driven by a transistor on a Raspberry Pi 4. When the logical pin is set to 0, the relay is normally closed (delivering curren
I am pretty new to coding and am working on a lexer project for school. I have made it so it can register everything as tokens and have been expanding its abili
I am trying to configure my neo 6m GPS to stop automatic sending of information. I used Hterm serial terminal to send the proprietary messages ($PUBX,40,GLL,1,0
In my text file, there are random binary numbers written in a 10x10 matrix. I want to print them in C exactly as they appear in the text file. So I made my code
I need some explanation/clarification about using local variables in FreeRTOS when I need to pass them to another functions as pointers. For example I have some
I have a small program to demonstrate two way communication with pipe between parent and child processes. I already asked a question about this (Two way communi
My issue is coming from the %c name input, I am getting an error that it is expecting type char * but has type char * [15] for the scanf function. I am also ge
I am still newish to makefile patterns. I have been working on a project based on a template makefile and project structure, however I have a good sense of what
I want a code that represents a sparse matrix including zero elements using linked list, I basically want the output to be like this: 1 0 0 0 0 6 1 0
I am encrypting a video file using 3DES algorithm and ffmpeg library.In my program, I use two channels, each connected to its own instance of FFmpeg. Basically,
Initial the integer array[] right line 21 will cause the failure of the data[] array fread from data.txt . int main() { FILE * file0 = NULL;
The expected outcome is for example: a word a sentence This is the outcome tho: aword word a sentence Here's the code: #include <stdlib.h> #include <
This following code gives Segmentation fault: #include <stdio.h> int main() { char* str = "hello world"; str[0] = 'H'; // it is
I am new in learning C. I have an issue in returning double star pointer from the function. This is my code. #include <stdio.h> #include <stdbool.h>
C11, 6.2.4 Storage durations of objects, 4 (emphasis added): An object whose identifier is declared with the storage-class specifier _Thread_local has thread s