StackOverflow Questions for Tag: strncmp

user14377467
user14377467

Reputation: 31

How to copy the string that remains after using strncpy

Score: 1

Views: 1019

Answers: 4

Read More
Atti
Atti

Reputation: 41

Is my version of the strncmp c function correct?

Score: 1

Views: 222

Answers: 2

Read More
mustafalinan
mustafalinan

Reputation: 13

When I try to sort strings by bubble sort algorithm, I do not see any strings at the output but only one string

Score: 1

Views: 64

Answers: 2

Read More
Kings man
Kings man

Reputation: 17

How to implement strncmp in NASM

Score: 0

Views: 179

Answers: 1

Read More
Lover of Structure
Lover of Structure

Reputation: 1858

Is it undefined behavior what strncmp(s1, s2, 0) returns (i.e. the last argument is zero)?

Score: 7

Views: 258

Answers: 2

Read More
New Leaf
New Leaf

Reputation: 25

Segmentation Fault 11 , I know which part of code is wrong, but IDK why

Score: 0

Views: 138

Answers: 1

Read More
psychosys
psychosys

Reputation: 67

How could I compare a "substring" of a character array with another character array?

Score: 1

Views: 605

Answers: 2

Read More
ZwergofPhoenix
ZwergofPhoenix

Reputation: 151

strncmp() Clang-Tidy: Comparison length too long and might lead to buffer overflow

Score: 1

Views: 270

Answers: 1

Read More
david_adler
david_adler

Reputation: 10972

Why is string comparison so fast in python?

Score: 49

Views: 11729

Answers: 2

Read More
rwallace
rwallace

Reputation: 33515

Where is strnicmp on Windows?

Score: 0

Views: 512

Answers: 2

Read More
Aislyn Green
Aislyn Green

Reputation: 11

Write a program that reads a short string and a longer string and checks if the longer string starts with the letters of the short string. Use strncmp

Score: -1

Views: 142

Answers: 1

Read More
mengxinayan
mengxinayan

Reputation: 11

Why `strncmp()` return a fault value in a special case?

Score: 1

Views: 200

Answers: 2

Read More
Dalton Cézane
Dalton Cézane

Reputation: 3782

string.h functions - strncpy and strncat strange behaviour

Score: 0

Views: 189

Answers: 1

Read More
sonya
sonya

Reputation: 1

my strncmp isnt working for two 2d arrays

Score: -1

Views: 73

Answers: 1

Read More
Zero
Zero

Reputation: 17

Complexity of strncmp in string.h

Score: 0

Views: 445

Answers: 1

Read More
João Sacramento
João Sacramento

Reputation: 83

strncmp() function vs !(strncmp()) function

Score: -2

Views: 883

Answers: 2

Read More
Logan Cortés
Logan Cortés

Reputation: 15

strncmp gives 0 even when strings are NOT equal - C

Score: 1

Views: 1141

Answers: 2

Read More
user11000993
user11000993

Reputation:

How to compare char* to string literal in C?

Score: 1

Views: 2282

Answers: 2

Read More
Tercé Nicolas
Tercé Nicolas

Reputation: 29

how to recognize string with color code with strncmp in c?

Score: -1

Views: 235

Answers: 2

Read More
Puma Pants
Puma Pants

Reputation: 11

Security Impact of using strncmp()?

Score: 1

Views: 1056

Answers: 1

Read More
PreviousPage 1Next