strcpy
invalid conversion from 'char' to 'char*' using strcpy
Ok so here are the parts of my code that I\'m having trouble with: char * historyArray; historyArray = new char [20];[详细]
2023-04-09 01:43 分类:问答strcpy() causes segmentation fault? [duplicate]
This question already has answers here: 开发者_高级运维Closed 11 years ago. Possible Duplicate: Getting Segmentation Fault[详细]
2023-04-06 09:04 分类:问答How to fix strcpy so that it detects overlapping strings
In an interview, I was asked to write an implement开发者_运维百科ation of strcpy and then fix it so that it properly handles overlapping strings. My implementation is below and it is very naive. How d[详细]
2023-04-05 04:56 分类:问答strcpy and strcat cause problems sometimes
hello I have a code like the one below char *str ; strcpy(str, \"\\t<\"); strcat(str, time); strcat(str, \">[\");[详细]
2023-03-31 18:38 分类:问答Why does this intentionally incorrect use of strcpy not fail horribly?
Why does the below C code using strcpy work just fine for me? I tried to make it fail in two ways: 1) I tried strcpy from a string literal into allocated memory that was too small to contain it. It c[详细]
2023-03-29 21:17 分类:问答C - why is strcpy() necessary
Can someone please explain to me why strcpy() is necessary to assign strings to character arrays, such as in the following code snippet.[详细]
2023-03-24 15:19 分类:问答Type of parameter accepted by strcpy() ?
Why is that strcpy() accepting char array pointer even though the definition of strcpy is char * strcpy( char * , const char * ) ??[详细]
2023-03-23 19:17 分类:问答Segmentation fault around strcpy?
I know that you will rap me over the knuckles but. Why does it make Segmentation fault char* cmd; strcpy(cmd, argv[0]);[详细]
2023-03-14 15:39 分类:问答Segmentation fault while using strcpy()?
I have a global structure: struct thread_data{ char *incall[10]; int syscall arg_no; 开发者_如何学Python int client_socket;[详细]
2023-03-11 05:47 分类:问答Help with c errors
getting this error: 1>c:\\users\\b1021568\\documents\\visual studio 2010\\projects\\tarefa42\\tarefa[详细]
2023-03-04 18:59 分类:问答