UNIX/Linux Programming - November 2008

by tqa
send array of string over socket programming
 
I am doing a network relay program using socket programming to connect all the nodes. Basically, the server will connect to one client and will pass an informa...
[4 replies] Last: thanks for the idea..my code run as im using this strcpy( reinterp... (by tqa)
Invalid Write and Read in Linux not in Mac OS X
 
I've been testing some C codes on Mac OS X and they seemed to work fine, but when I ran them on Linux some segmentation faults appeared. So I checked my code wi...
[2 replies] Last: ...and variable --it can be different each time you run your program, ... (by Duthomhas)
by jui
Suggestions in improving and writing user input based program
 
Hello, I am working on the code for a while but I could hardly make this better but some changes manually in the code which is very inefficient and error pro...
[13 replies] Last: Thank you very much for the info and advice, Firedraco and Zaita. Thi... (by jui)
by Ruben
Solving multiple definition
 
Hi all, I'm having problems with a shared variable by more than one programs invoked from a main piece of code. I can actually make the object code of each f...
[2 replies] Last: yes, it works! It was as simple as what you say. I'll print your... (by Ruben)
Pass An Object to A Function
 
hi all, i got some problems when i implement my function. i want to pass an object A to a function F of another object C. there are two problems 1) A will ...
[4 replies] Last: thank you very much, it helps me a lot!! (by KenSoGCN)
by baba
center
 
write a c++ program to find the centre of a circle passing through 3 given points Ex. Input: (0,1),(0,-1),(1,0) OUTPUT: (0,0)
[3 replies] Last: http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
Need some guidance on Programming Assignment
 
I need help because i have no idea how to do this: You will be using the graphics window to display the movement of a Point object, instead of just outputt...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
by Rita
Problem in generating Output files
 
I compile my C program under Linux system, but after I compile it, it returns one error: In function `Run(short, InputStruct*, OutStruct*)': : undefined ref...
[2 replies] Last: I think you are trying to link a C++ object file with a C compiler suc... (by Biju Scaria)
Compare (strcmp)
 
Hello, I have the following code: const char* blaat = "@@BCN"; const char* hoi = blaat; printf("%d", strcmp(blaat, hoi)); It returns 0! How is this ...
[2 replies] Last: Ah, I'm so stupid, Thanks :-) (by CrossWind)
load LGPL library
 
Hi all How can i load LGPL library without disclosing the source code in C. I have not any idea. Please help me. BR
[1 reply] : Here're some tutorials. http://www.dwheeler.com/program-library/Progr... (by Duthomhas)
Checking file data status
 
Hello, When reading a file (either from C code or Linux commands such as cp), its data is saved in the memory to optimize the next read. That is to say, in the...
[2 replies] Last: Unless you are writing your own OS, you are wasting your time. The OS ... (by Duthomhas)
Cannot modify sys_call_table
 
Hello everybody! I've got a trouble with my kernel module since I updated Ubuntu 8.04 last time. So, it's all about kernel 2.6.24-21 and higher... I think so, ...
[no replies]
receive global window creation events?
 
Hi everyone! I'm fairly new to X11 programming so bear with me a bit. I'm attempting to change the title bar on windows which match a few criteria. I can isola...
[no replies]
printing float as a hex number
 
hello all If a user enters a floatint point number like 10.1, I want to print out the hex number in floating point. The %X specifer allows for an int to be p...
[5 replies] Last: Slick! I didn't know that was there... (by Duthomhas)
advanced console printing
 
Hi all, i'm writing a program and i would like to change predefined lines in the printed text in the terminal, without changing the other text... For exa...
[2 replies] Last: Google for NCurses . You've probably already got it installed if you ... (by Duthomhas)
Can't I Cast sockaddr to sockaddr_in?!
 
I'm trying to grab client's port number, by doing the following code: //get client's port number - here we are not dealing with pointers //because the re...
[1 reply] : I got it....Its too simple :-), i don't know how i did not get it from... (by f ben isaac)
  Archived months: [oct2008] [dec2008]

This is an archived page. To post a new message, go to the current page.