query: C segfaults on string operation
positive_passages.docid: 805
positive_passages.text: Why do I get a segmentation fault when writing to a "char *s" initialized with a string literal, but not "char s[]"?
negative_passages.docid: 118582
negative_passages.text: Using the equality operator == to compare two strings for equality in C
negative_passages.docid: 140791
negative_passages.text: "Segmentation fault" vs "run time" error?
negative_passages.docid: 149232
negative_passages.text: strcmp() return values in C
negative_passages.docid: 50403
negative_passages.text: safe string slice
negative_passages.docid: 123203
negative_passages.text: Why does this intentionally incorrect use of strcpy not fail horribly?
negative_passages.docid: 153118
negative_passages.text: Segmentation fault using strcat
negative_passages.docid: 7096
negative_passages.text: What is the difference between char s[] and char *s?
negative_passages.docid: 7739
negative_passages.text: Segmentation fault on large array sizes
negative_passages.docid: 31433
negative_passages.text: How do I properly compare strings in C?
negative_passages.docid: 136822
negative_passages.text: Why does a C-Array have a wrong sizeof() value when it's passed to a function?
negative_passages.docid: 93391
negative_passages.text: Segmentation Fault in strcpy()
negative_passages.docid: 44529
negative_passages.text: Wrong number of parameters to printf leads to strange results
negative_passages.docid: 28634
negative_passages.text: Why printf() when printing multiple strings (%s) leaves newline and how to solve this?
negative_passages.docid: 35533
negative_passages.text: Writing to pointer out of bounds after malloc() not causing error
negative_passages.docid: 82318
negative_passages.text: What is the difference between char array and char pointer in C?
negative_passages.docid: 47006
negative_passages.text: Parenthesis surrounding return values in C