StackOverflow Questions for Tag: strncpy

JRR
JRR

Reputation: 3223

gcc-8 -Wstringop-truncation what is the good practice?

Score: 50

Views: 59729

Answers: 9

Read More
CIsForCookies
CIsForCookies

Reputation: 12807

how to use strncpy correctly?

Score: 5

Views: 22600

Answers: 3

Read More
Kredns
Kredns

Reputation: 37201

Why should you use strncpy instead of strcpy?

Score: 115

Views: 242868

Answers: 11

Read More
Matt Joiner
Matt Joiner

Reputation: 118470

Convert zero-padded bytes to UTF-8 string

Score: 24

Views: 29856

Answers: 4

Read More
Eivor
Eivor

Reputation: 19

how is strncpy able to copy from source to empty destination?

Score: 2

Views: 91

Answers: 2

Read More
ChrisAB
ChrisAB

Reputation: 11

-Wstringop-overflow warning when length allocated to destination string is equal to source

Score: 0

Views: 201

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
Coder
Coder

Reputation: 227

Why does strncpy() produce garbage when the dest is smaller than the src but large enough to fit the wanted substring of src?

Score: 2

Views: 473

Answers: 3

Read More
Nathan Anderson
Nathan Anderson

Reputation: 21

How to create my own strcpy function?

Score: 2

Views: 22334

Answers: 4

Read More
user559208
user559208

Reputation: 1545

Difference between strncpy and memcpy?

Score: 25

Views: 55631

Answers: 6

Read More
santiago deliotte
santiago deliotte

Reputation: 11

Why isn't strncpy working to copy a string to a variable of a struct?

Score: 1

Views: 102

Answers: 0

Read More
Venkat
Venkat

Reputation: 3

Using strncpy to copy a char* pointing to an array of names

Score: 0

Views: 79

Answers: 1

Read More
ideasman42
ideasman42

Reputation: 47968

utf8 aware strncpy

Score: 11

Views: 7471

Answers: 6

Read More
Oscar
Oscar

Reputation: 243

ANSI C strncpy messing up screen output and other variables' values

Score: 0

Views: 141

Answers: 1

Read More
tteixeira
tteixeira

Reputation: 351

Regex and strncpy not working as I understood them

Score: 0

Views: 63

Answers: 1

Read More
shari
shari

Reputation: 33

Copying a subarray from an array of substrings in c

Score: -1

Views: 45

Answers: 1

Read More
seyfu-t
seyfu-t

Reputation: 1

Can't compare Lines of a file in C

Score: 0

Views: 60

Answers: 1

Read More
Stats Cruncher
Stats Cruncher

Reputation: 153

What is wrong with strncpy_s() here?

Score: 2

Views: 15735

Answers: 2

Read More
Mark
Mark

Reputation: 5028

Wrong destination size for strncpy

Score: 2

Views: 131

Answers: 0

Read More
user19897564
user19897564

Reputation:

Buffer overflow? strncat() in C

Score: 0

Views: 195

Answers: 3

Read More
PreviousPage 1Next