Assuming no string less than 4 bytes is ever passed, is there anything wrong with this optimization? And yes it is a significant speedup on the machin ...
Assuming no string less than 4 bytes is ever passed, is there anything wrong with this optimization? And yes it is a significant speedup on the machin ...
My qsort seems to not be sorting anything. When I pass strings to the program it doesn't sort ...
if ( strlen(c1) == 0) ==> equivalent assembly code ==> if (strcmp(c2, "") == 0) ==> equivalent assembly code ==> Not able to diffe ...
I'm currently learning C and I have this question... During the execution, strcmp doesn't return 0 when I insert the value "Pedro" in the array "te ...
So below is my source code in c in which i have used strcmp function to compare two strings when i run the compiled program it is giving wrong outp ...
I have a data structure, and I'm trying to replace a char value within it. I'm using the following code: raw(1,1).stimulus.values{1,1}.name=order{1}; ...
I am trying to calculate the number of sentences inside any text on the basis that the end of each sentence may be !, ? or ., but when I used strcmp() ...
I am trying to replicate the strcmp() function from the string.h library and here is my code I tried my function using this sample code: And I g ...
I am trying to get the procid of a process using the name of the process. The errors are talking about procEntry.szExeFile. However, I am getting the ...
In the below program I am trying to copy string data "eth0" into the array of structure containing string data and a count defined as below. strcmp re ...
When using strcmp function (in the string.h library) , passing a 2-D character array as a parameter comparison , there is a need to add the ampersand ...
I want to check if a table column contains any of the elements in another table. Here's the tables: Now, to check if Table2 contains any of the ite ...
So I have a problem that strcmp not working even the string is same. The cmp between destination and source string is have same string, but when strcm ...
OUTPUT SHOULD LOOK LIKE(FOR EXAMPLE IF I TYPE A) BUT I am getting Getting this correct will help me to find the index position so that I may a ...
Basically i have an array of strings and i need to check if they are arranged in lexographic order (case insensitive of upper or lower case, meaning i ...
I have some problem understanding a code. Can you please help me to understand this line of code : Full code : (Users represents a username tha ...
How to check if the string is already in an array of structures? The array is inside a structure and I don't know how to compare arrays inside the str ...
Hello so I've been working a little prgramme which is sort of a calculator (I'm a beginner) and well as you can see in the tittle at then end of the c ...
I have task to make a program that can sort names. The output of the program: How many names will be inputed? 3 Angelia Kho Angel Angelina Sorted N ...
Animal is a struct and name is one of its attribute. What I want is when I write a name in scanf, it should iterate in the array uing strcmp and when ...