How is organized the debug information in a compiled C/C++ program ?
What does it contain ?
How the debug information is used by the debugger, e.g. gdb and how can I read the debug information better than nm or objdump?
...
I'm just wondering if this is possible using either (Python, Java or C)? I'm looking for something like IPython for Python.
...
I have a socket() function call in my code.(using C language):
socket(AF_INET, SOCK_STREAM, 0))
I want that it should result in error.(INVALID_SOCKET)
Do we have some way out so that above function call results in error.
Like stopping some services,etc
...
I know the concepts of bit-wise operators, bit manipulation, 2's complement etc. But when it comes to solving something using bit manipulation it does not strike me. I takes me time to wrap my head around them.
I thought it would help if I looked at some questions regarding bit operators/bit manipulation but it left me even more confus...
Could someone provide me an example of utilizing SECURITY_DESCRIPTOR in InitializeObjectAttributes()? I plan to use them with NtCreateKey(). I couldn't find any example on the Internet.
Thanks in advance.
...
Possible Duplicate:
What does #define STR(a) #a do?
#include <stdio.h>
#define f(a,b) printf("yes")
#define g(a) #a
#define h(a) g(a)
int main()
{
printf("%s\n",h(f(1,2)));
printf("%s\n",g(f(1,2)));
}
Can somebody explain why output is different for both printf() statements.
...
Hi,
I have this c code:
if(fork()==0){
execl("/usr/bin/fsck", "fsck", "/dev/c0d0p1s0", NULL);
}
it calls execl to run fsck for checking the filesystem /dev/c0d0p1s0.
My question is: how can I get the return value of fsck?
I need the return value of fsck to check whether the file system is consistence or not.
Thank you.
...
size_t pixelsWidth = (size_t)bitmapSize.width;
Or is it totally fine to do without the casting to size_t? bitmapSize is of type CGSize...
...
Possible Duplicate:
C subset of C++ -> Where not ? examples ?
I'm aware that C++ is not a strict superset of C. What language features prevent C++ from being a superset of C?
...
I am trying to redirect the output of a c program to file, even when it generates some errors because of problems with the input data. I can send the output but the error messages to a file.
Does somebody know how to do it?
...
Hi, this is my first question here; hope I'll be clear enough...
I've got this struct available
typedef struct COLORTRIPLE
{
byte blue;
byte green;
byte red;
}
which is contained in another struct like that:
struct color_temp
{
COLORTRIPLE color;
int temp;
};
And (EDIT)
#define PIXEL(image, row, column) \
image.pi...
Is this possible? The idea is typing a password and it being translated to asterisks on the fly- pretty much like a password field on HTML. I've written this code, but it converts the input AFTER the user presses enter, not while he/she is typing.
#include <stdio.h>
#include <string.h>
#include <iostream>
int main()
{
char passwor...
Can I have a project that has some parts written in c and other parts written in c++ ?
Is this possible ?
...
The Actor-model was defined in a 1973 paper by Carl Hewitt, but has been popularized by the Erlang language. I believe the parts of Erlang that aren't self-hosted (written in Erlang) are written in C; BEAM and HiPE are written mostly in C. What are some alternative Actor-model implementations (languages, frameworks, or libraries) that ar...
hi,
i'v got an dynamic-Lib which i build with
OBJECTS=keys.o etc2.o foo.o
$(CC) -DSYS_MACOSX -g -fPIC -flat_namespace -L. -lpthread -Wl,-flat_namespace -dynamiclib -shared -o libmylib.dylib $(OBJECTS)
My test progam links with this library
$(CC) -DSYS_MACOSX -g -fPIC testmain.c -o testmain -I. -flat_namespace -L. -lpthread -lm...
What is the result of adding the binary numbers 01000001 and 11111111 on an 8 bit machine?
...
Possible Duplicate:
Can you write object oriented code in C?
Hi, can someone point me to a tutorial explain me how OOP concepts can be implemented in ANSI C:
virtual functions
inheritance
best practice
A book about OOP programming ANSI C would be great too.
...
Hello stackoverflow,
I have a data file of almost 9 million lines (soon to be more than 500 million lines) and I'm looking for the fastest way to read it in. The five aligned columns are padded and separated by spaces, so I know where on each line to look for the two fields that I want.
My Python routine takes 45 secs:
import sys,time
...
Hi,
I am writing a .c apns (apple push notification server) application,
I have the rest of the program working ie connecting to the servers establishing ssl, json encoding the message etc.
However I am stuck on the part that converts the token to a hex string part.
Example values
$deviceToken is "4DBCD414F624842E581972E65D2DAA4B96279B20...
I can check whether a number is odd/even using bitwise operators. Can I check whether a number is positive/zero/negative without using any conditional statements/operators like if/ternary etc.
Can the same be done using bitwise operators and some trick in C or in C++?
...