strcpy
Cant copy a string to a string in a struct ( C )
I am trying to copy some strings to strings in a struct using strcpy. I am posting the code: #include <stdio.h>[详细]
2023-02-28 20:13 分类:问答Child doesn't terminate correctly in fork
I am writing a c program for a class that is a small shell.The user inputs a command, and the code executes it using the exec() function.[详细]
2023-02-25 21:37 分类:问答Program aborts when using strcpy on a char pointer? (Works fine on char array)
I\'m perplexed as to why the following doesn\'t work: char * f = \"abcdef\"; strcpy(f, \"abcdef\"); printf(\"%s\",f);[详细]
2023-02-24 01:26 分类:问答getting the local system date time and converting it to a string (MFC C++)
I开发者_JS百科 have inherited some MFC C++ code (it\'s an ActiveX OCX control running on a Windows Mobile 6.5 device)and I need to acquire the system date and time and append it as part of an existing[详细]
2023-02-18 07:26 分类:问答strncmp/strcpy corrupting source
today i was trying to get friendly with char * string... but it seems im failing :) Every time i call strcmp/strncmp/strcpy function my source gets corrupted...[详细]
2023-02-16 06:13 分类:问答strcpy string array
char copy, array[20] printf(\"enter ...\"): scanf(\"%s\", array); if (strlen(array) > 20 ) { strcpy(copy, array....);[详细]
2023-02-14 01:11 分类:问答Valgrind Warning: Should I Take It Seriously
Background: I have a small routine that mimics fgets(character, 2, fp) except it takes a character from a开发者_如何学Go string instead of a stream. newBuff is dynamically allocated string passed as a[详细]
2023-02-07 08:15 分类:问答Alternative of strcpy in c++
In C i used strcpy to make a deep copy of a string, but is it still \'fi开发者_运维技巧ne\' to use strcpy in C++ or are there better alternatives which i should use instead ? I put this in the comment[详细]
2023-02-05 14:40 分类:问答c strcpy a file descriptor
I have a question with strcpy() function. What I am trying to do is the user enters a file name and I basicly open the file, gets contents and create copy of file.[详细]
2023-02-03 20:21 分类:问答Copy unsigned char array
What would be the best way to copy unsigned char array to another? For example: unsigned char q[1000]; unsigned char p[1000];[详细]
2023-01-31 23:01 分类:问答
加载中,请稍侯......