C/C++ RSS

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • constructing own error functions vs something like fprinf()

    Why would someone go through the trouble of constructing an errorhandling function using variable-length argument lists? Why not justuse something like printf()?...

    5 answers | 188 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • What about a C compiler with structured data management INSIDE ?

    HELL !in upper case: i mean to be heard ;o)Compilers are good !Myself, i used TP6 and TP7 to work on dBASE V files, once a longtime ago.I was unaware of Internet Usenet world, fool of me !Today i use Internet and Html (hand coding HTML, quite a dumb)also XMLand XSLT and so on!Like any one of you...

    3 answers | 1550 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • Data Structure

    Dear AllPlease go through the below data structure and pleaselet me know what it is exactly doing ? I am not able to understandas there are the fuction pointers used inside it which is takingthe structure as the agrument, is this a sort of link list ?typedef struct{char *Data;char *Parent;int Si...

    6 answers | 625 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • nested while - how to go to the beginning of the first while?

    I have a nested while. How do I go from the inner while to thebeginning of the outer while? Can this be done without using goto?while_1(){some codes herewhile_2(){if true go to the beginning of while_1}some codes here}...

    29 answers | 277 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • function arguments question (newbie)

    Hello,The following useless code seems to compile and run, but I'm not surewhy. I turned on all the compiler warning flags, but it remains silent.[Start code]1 #include <stdlib.h>2 #include <stdio.h>34 int main (argc, argv)5 int argc; char *argv[];6 {7 (void) printf("%d\n", argc...

    4 answers | 903 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • A biiiig break ?

    Dear all,I would like to find an instruction thatstops n level of my programmTypically, I have a gtk-graphical application (a game),the user asks for something (say function do_that)and something wrong happensso I would like the program to abort the current computation(end of do_that)and go back...

    7 answers | 458 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • realloc, copy and VM

    When you realloc for more size, it may be necessary to allocate a new block,copy memory and deallocate the old, for example if there is not enough freespace after the original block (maybe the only example ?). But, is it reallynecessary to _copy_ bytes ? When in a virtual memory environment (off...

    8 answers | 677 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • printf() with too many args -- legal?

    I know that passing printf() too few arguments, or arguments of the wrongtype invokes UB. However, what about passing too many arguments, if theexpected arguments are of the correct type?For example:char format1[] = "foo %s bar %s baz %d";char format2[] = "foo %s bar %s no baz here";char *strvar...

    29 answers | 974 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • compiler unable to find defn. of sin()

    Dear All,I'm having a nightmare compiling a small simple program on a LinuxFedora core 2 platformthe program goes like thisin file mathtest.c#include <math.h>#include <stdio.h>int main(void){printf("%s%d\n","The value of sin(3) is: ", sin(3));return 0;}I'm compiling the abo...

    2 answers | 714 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • static function declaration in header file

    Hi All:Is there any reason for declaring functions as static in a header fileif that header file is going to be included in several other files? Thecompiler throws a warning for every such function declared but notcalled in the source file. Here is what I heard someone mention:The functions are...

    6 answers | 827 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • Convert hex string to struct

    Anyone have some code to help me understand how I can convert a givenhex string, say "," into a struct ofthis form:struct uniqueid {ulong32_t word1;ulong32_t word2;ulong32_t word3;ulong32_t word4;};Thanks very much.-Ross...

    4 answers | 287 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

  • URL+JPEG+MPEG+P2P blocking

    Hey Guys im new to this forumi m not very much perfect in Cbuti can stand overmy prob is thati m looking out for code in C ifpossible Linux Based or logic so that i can code for the following.1.Specific URL blockinglike i want URLS to se allowed uptill certaindepth only.2.Peer to Peer applicatio...

    2 answers | 429 bytes | related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

QUESTION ON "C/C++"
EMSDN.COM