home
I found a function which performs the same as strcmp but I was unable to see where the comparison...
This question already has an answer here: Pointer subtraction...
Im trying to figure out how to handle the exception of a user typing in the wrong filename. Im...
trying to parse a csv file containing lines in this format 1001,Kauri tree,1002,-1,1001,1001 and...
Take a look at this link. #if defined HAVE_IPP && IPP_VERSION_X100 >= 810 &&...
I have a C file that I compiled with gcc, but I need to link it with the "LD" linker. The problem...
Need to read a csv file and print out the students name and age, works fine but in the output...
The task is to remove all of the extra whitespaces in a string, for example if a string looks like...
I am trying to import c header file from python, when using SWIG.(I am a beginner in SWIG). There...
I program in C, and have got into the pattern of doing as follows after defining a new type: add...
The program works fine when I dynamically allocated memory in "main" function. Now I want to...
I've got a problem mixing the C++ and C code. My C++ code was created in VS10, i.e is a Windows...
Problem is to find the middle of the given linked list. First I thought that the condition in...
I'd like to know what's the best way to exit from a do-while loop without using EOF or another...
When I try to find the time complexity of this function, I come with m!. What I did...
/*implementation of strcmp*/ #include<stdio.h> #include<string.h> /*length of the...
To analyze the matrix structure, I need an array which contains the number of nonzero elements per...
Just got a "The C programming language, 2nd edition" and I'm struggling to make a solution using...
I am using beaglebone black. writing C program I connect as a root I'm trying to write a value to...
This question already has an answer here: Two semicolons inside a...
I have a struct like this: struct my_struct { struct_a a; struct_b b; }; I am trying to...
in the following code the output is 30 ! , it should be 0. am I missing something? #include...
I understand how #define works in C but I stumbled upon this #define in a header file. I would like...
I don't get the purpose of the seed in the srand function in C. Can someone explain that to me? I...
I know I have to use the function n=1000+rand()%1112 but I've tried using it and it generates the...
I see there are a lot of multi-byte and wide character routines available out there : mbstowcs(),...
The following function intends to check whether the pointer b is pointing to the array...
Tried to compile this on mac os x using clang: #include <stdio.h> #include...
Hey I was trying to figure out why -1 << 4 (left) shift is FFF0 after looking and reading...
I'm trying to create a server that uses a select and a threadpool, I want to finish running the...