07-16-2013
Never mind, I had figured it out. It involved simply moving the fprintf calls in the main while loops in both runClient() and runServer() before I wrote the "bytes_read" to "bytes_written" and sent them back and forth. No assistance needed here now!
This User Gave Thanks to kowit010 For This Post:
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I've been trying to find a good check I can put it in to a shell script to see if a given user exists.
Some of the things I've thought about is checking whether they have a home directory, but not all users have a home directory. I've thought about grepping the /etc/passwd file for... (4 Replies)
Discussion started by: _Spare_Ribs_
4 Replies
2. AIX
Hi All,
I am looking for information and advice on a reliable method to support the dual booting between AIX 5.3 and AIX 6.1
I have a 7029-6E3 with 2 x 36Gb disks, hdisk0 (altinst_rootvg) and hdisk1 (rootvg)
I have previously used alt_disk_install to upgrade from 5.1->5.3, and now from... (2 Replies)
Discussion started by: KevB
2 Replies
3. Shell Programming and Scripting
Hi Guys,
I have a file which has numbers in it separated by newlines as follows:
1.113
1.456
0.556
0.021
-0.541
-0.444
I am using the following code to store these in an array in bash:
FILE14=data.txt
ARRAY14=(`awk '{print}' $FILE14`) (6 Replies)
Discussion started by: npatwardhan
6 Replies
4. Programming
could somebody give me hand programming the attached request.
my code isn't complete and i do not really understand how should i implement that. (1 Reply)
Discussion started by: makaveli_
1 Replies
5. Programming
I' m note very expert in the reliable manage of signal... but in my server I must manage SIGPIPE for the socket and SIGTERM...
I've wrote this but there is something wrong... Can someone explain me with some example the reliable management of signal??
This is what I've wrote in the server
... (2 Replies)
Discussion started by: italian_boy
2 Replies
6. SuSE
Hi,
We are ready to update OpenSuSE for our web servers from 11.2 to either 11.4 or 12.1.
12.1 is still a beta version. Is it stable and reliable enough for production servers? Please share your valuable experiences.
Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies
7. Ubuntu
I have just about given up trying to find a reliable package.
Imagination - Pitvi - Openshot - DVD Styler are just some of those tried, but even if success has been achieved in exporting a viable result - Brasero will not burn it this includes VOB files. It seems that there is no alternative to... (1 Reply)
Discussion started by: Royalist
1 Replies
8. UNIX for Dummies Questions & Answers
edit by bakunin: content not relevant for our site (and bordering on spam) SNIPped, thread closed.
My suggestion is to - before even considering to buy anything online - put more effort in research, i.e. what the web site you write a comment at, is all about. This one here is definitely not for... (1 Reply)
Discussion started by: ethansk
1 Replies
LEARN ABOUT DEBIAN
explain_fprintf_or_die
explain_fprintf_or_die(3) Library Functions Manual explain_fprintf_or_die(3)
NAME
explain_fprintf_or_die - formatted output conversion and report errors
SYNOPSIS
#include <libexplain/fprintf.h>
int explain_fprintf_or_die(FILE *fp, const char *format, ...);
int explain_fprintf_on_error(FILE *fp, const char *format, ...);
DESCRIPTION
The explain_fprintf_or_die function is used to call the fprintf(3) system call. On failure an explanation will be printed to stderr,
obtained from the explain_fprintf(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_fprintf_on_error function is used to call the fprintf(3) system call. On failure an explanation will be printed to stderr,
obtained from the explain_fprintf(3) function, but still returns to the caller.
fp The fp, exactly as to be passed to the fprintf(3) system call.
format The format, exactly as to be passed to the fprintf(3) system call.
RETURN VALUE
The explain_fprintf_or_die function only returns on success, see fprintf(3) for more information. On failure, prints an explanation and
exits, it does not return.
The explain_fprintf_on_error function always returns the value return by the wrapped fprintf(3) system call.
EXAMPLE
The explain_fprintf_or_die function is intended to be used in a fashion similar to the following example:
int result = explain_fprintf_or_die(fp, format, ...);
SEE ALSO
fprintf(3)
formatted output conversion
explain_fprintf(3)
explain fprintf(3) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2010 Peter Miller
explain_fprintf_or_die(3)