2d
comment Segmentation fault in c code for ASCII art conversion
Yes you can add additional loops that allocate all the required memory. Alternatively you could to it in the loops you already have, allocating memory for each array index before you read in the values.
2d
answered Segmentation fault in c code for ASCII art conversion
2d
reviewed Approve suggested edit on issue with getting the value from array of int's after passing a function pointer to the array
2d
revised Recreate the history feature in a personal shell
typo
May
21
comment Get one string with space first and get another after tabs
In the edit box there is a "?" icon in the top right. It shows you help on how to format code/.... Also capitalizing words correctly would make things more readable.
May
21
comment error: expected declaration specifiers or '...' before 'Etf'
Looks like Etf.h does not actually declare Etf correctly
May
21
comment error: expected declaration specifiers or '...' before 'Etf'
Which line does the compiler complaint about?
May
21
reviewed Approve suggested edit on error: expected declaration specifiers or '...' before 'Etf'
May
20
revised Echo new line in bash prints literal \n
Added justification for preferring printf
May
16
comment Verify string as valid C code
@NicoSchlömer: The subprocess module lets you start external programs like the C compiler, and check their exit status.
May
16
comment Double free() occurrence where it should not
Not necessarily the cause of the specific problem, but in str_AppendChar() the second parameter is treated like a string (used with strlen() and strcpy()), while it really just points to a single character, not a null-terminated sequence of characters. So it will try to access the random memory that follows the character, up to the next null it happens to find.
May
16
answered Verify string as valid C code
May
11
awarded Enlightened
May
11
awarded Nice Answer
May
8
awarded Great Answer
May
7
awarded Nice Question
May
7
awarded Enlightened
May
7
awarded Nice Answer
May
5
revised Compile error. Definition mismatch. void (*)(void *)
added 2 characters in body
Apr
23
awarded Good Answer
1 2 3 4 5