How do I set a conditional breakpoint in gdb, when char* x points to a string whose value equals “hello”?
Can I specify that I want gdb to break at line x when char* x points to a string whose value equals “hello”? … Read more
Can I specify that I want gdb to break at line x when char* x points to a string whose value equals “hello”? … Read more
I have a library I created, File mylib.c: #include <mylib.h> int testlib() { printf(“Hello, World!\n”); return (0); } File mylib.h: #include <stdio.h> extern … Read more
I am reading about libraries in C but I have not yet found an explanation on what an object file is. What’s the … Read more
I have some source code that was compiled on Windows. I am converting it to run on Red Hat Linux. The source code … Read more
I am trying to understand the difference between memcpy() and memmove(), and I have read the text that memcpy() doesn’t take care of … Read more
In C, the compiler will lay out members of a struct in the order in which they’re declared, with possible padding bytes inserted … Read more
I have used the gcc command on the terminal to compile C programs but all of a sudden, after an update to my … Read more
How do I write a function to split and return an array for a string with delimiters in the C programming language? char* … Read more
My friend said that there are differences between “mod” and “remainder”. If so, what are those differences in C and C++? Does ‘%’ … Read more
Why is it that scanf() needs the l in “%lf” when reading a double, when printf() can use “%f” regardless of whether its … Read more