View Full Version : answers
- Undefined behaviour? Accessing s twice in a statement.
- Problem with C language
- why is this allowed if FOO is undefined: #if 1 < FOO
- How to convert an unsigned char array into hexstring in C ?
- long long problem
- A Type Conversion Question
- C Implementation Of Java Interface Class
- linked lists linux kernel how they works?
- union with packed struct
- An Example for Discussion
- Custom memory allocator - alignment
- Can we have inline functions in c?
- evaluation of arguments to a function
- Too many one line function calls
- what value does lack of return or empty "return;" return
- if EOF = -1, can't a valid character == EOF and cause problems?
- Sorting a vector in ascending order
- Sorting a vector in ascending order
- C guide giving specifications mentioned in the standard
- Bit stuffing in C Language
- playback wav buffer on Mac.
- Q: Newbee: #include "*.h" - What happened to <>
- Address within structure problem
- collating (mixing) two linked lists using C
- preprocessor and enum
- Creating socket programs as daemon
- assembler design in C
- Variadic functions calling variadic functions with the argument list, HLL bit shifts on LE processors
- multi-file programs - main.c recommended?
- segfault handling
- real-time programming
- swapd() undefined behavior?
- c standard
- Sorting of numbers or strings.
- String reversal from K & R 2nd edition
- using localtime
- Check my code please?
- if (-1) returns true
- Returning pointers from functions
- ISO: stack trace without using a debugger
- Bitwise operation for division
- static pointer
- how to determine which functions are called
- C Stack Corruption?
- C Libraries
- trying to run PurifyPlus in windows
- Help with Crash Dump
- Variable declaration in middle of block?
- Maximum number of arguments in a function call
- padding bits...
- how to count number of functions in c program
- experience definition in interview
- Binary-mode i/o, width of char, endianness
- Can I use C99 features yet?
- proper way to return errors to parent process
- (parallel) sorting pthreads
- return("hello")
- querry about compiling and linking
- calling my custom function same as library function
- Help With Strings
- Riding JNI[Java Native Interface]: Java to C and back
- Program entering the default case of switch statement always
- is this definition old-style or new-style
- "Streams"
- +++ SAN JOSE: SOFTWARE QA/TEST MANAGER, EMBEDDED SYSTEMS +++
- removing substring from string
- Odd Macro Problem
- Please critique my code/program
- Preprocessor log()?
- use of ++i, i++
- Reading/Writing other files from inside a C program
- how do I pass a generic comparison function?
- having trouble with basic multithreading
- comparison is always false due to limited range of data type
- Main function not defined
- Storing variable length data in file -- Paging
- C prog study
- functions
- #ifdef vs #if vs #if defined
- LDOM - Last Day of Month
- pointer to array v/s array of pointers
- getopt_long problem
- Beginner's question
- Projection of fractal surfaces
- Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting
- const function??
- Using a C++ class in C source file
- Why error in this code??? char*
- is (!ptr) or (ptr) valid way to check for NULL or NOT NULL?
- KWIC-indexing.............
- GCC linker throws weird message.
- How to check for internet connection
- string validation for int and long (strisint, strislong)
- where does cc send the output by default
- identity theft
- Python Online Programming Contest
- The Wisdom of 6.5.5(6)
- longjmp to the callee
- read vs fread
- cannot create 'c' executables
- assembly in a C language program
- doubt on regarding stacks
- Problems with DST in tm Structure
- Calculate the date after subtracting nmbr of days form a date
- calling a macro with ommitted input parameter?
- Trying to declare identifier locally and hide a file scope identifier
- linked list implementation
- Modulus of a negative number
- Program and Dr. Watson crashes for unknown reasons...
- calling external program from within C++
- The C Programming Language: Third Edition
- C linker error
- can I know how to write a html parser in C
- '#' conversion flag in printf() doesn't work with NULL character
- typedef declares object / enum to int
- char (*ptr)[]
- Video Playback Resources?
- "extern" inside a block
- generic data range monitor
- need expert help
- Memory leaks with realloc()
- Q: Newbee. Read and convert CSV file...
- PLZ ANYBODY KNOWS WHY ICAP PROTOCOL IS USED?
- greedy method
- streaming proxy
- Limit on maximum number of register variable in C program
- C question about Pointers and assembly
- Pointer doubt
- memset vs bzero
- help me understand this char array please....
- scripting
- Is this board a good alternative to the PC?
- expression evaluation : help!
- getting copilation error with gcc 3.4.2
- pow() problem
- Converting seconds to (Days, Hours, Minutes, seconds)
- error when allocating memory using a pointer inside a struct via a function
- number of machine instructions - for algorithm measuring
- FAQ 4.9 and void**
- My computer getting stuck when I debug in Visual C++
- "Bus Error" related to compiler option
- UCS-2 to ASCII
- is this stadard C?
- Function to replace multiple occurence of substring in a string
- what does it do?
- Temporary program suspension
- Portable?
- client server program code
- Variable list in pre-processor define
- Is correct ?
- how to use va_list
- how to use va_list
- Why Warning?
- Please help optimize (and standarize) this code...
- How to awake blocked socket read?
- what is .i file?
- HELP:I should in which newsgroup ??
- Help understanding this Macro
- Do objects have type?
- [Slightly OT] Trying to simulate OOP with C
- Fast Food nutrition database
- bitwise operators
- the algorithm of decimal<->binary conversion
- warning: assignment makes integer from pointer without a cast
- Reg virtual function and friend function
- Reg. copy constructor
- CR-NL, NL and ftell
- Literature incorrectly using word "scope"
- Verify that line exists in a file
- [C99] local VLA with dimension given by a global var?
- Binary number
- Drawing and images in C
- LPTSTR to char *.. How
- porting non-malloc code to malloc
- Segmentation fault in mallopt/malloc call
- Regular Expression
- where can i get the c library source code
- A salutary tale about alignment and undefined behaviour
- Fast addition for n+1 or n+0
- beginner's questions
- Doubt about how a linker generates a memory image
- virtual address or physical address?
- Spacefed Friends Online Gaming Community. Join Us!
- if?
- how to write a wrapper function?
- "token" "token sequence" "scalar variable" "vector" ??
- is casting (void*) to (FILE*) good?
- match enum to char* ?
- accessing and storing character arguements from command line
- getdate...
- if I define a function with no parameters, should i put void?
- Passing array to function
- sending text for editing in console
- Code in ASCII UTF8??
- Vmalloc help
- stringify with embedded quotes
- pcre.c : And Operator
- const ptr to const ptr ?
- what does this declaration mean?
- i want to use functions that don't return int, without declaring them
- converting a point known by 4 distances to xyz coordinates?
- need good IDE
- tanjent function - can someone check my code
- Taking advantage of cotiguous bytes in struct = portable?
- ( ) in precedecene table refer to function call or parenthesis?
- how to get aliagned memory using malloc
- name space and typedef
- ummm...... how to evaluate the formulae??
- Laptops, iPods, camcoders etc...
- shift right operator
- How to detect if file is deleted
- Testing a float for equivalence to a double.
- unsigned int with signed long int (same width) - how is conversion done?
- how this program works
- Help with research
- calling function that takes char**
- Search algorithm to use
- C&C++ sources compiled as c++ with g++ (mingw)
- (float *()) means???
- Portable pointer comparison
- va_copy in called function
- Sending output to printer
- bit vector
- Passing variable length arguements to another function.
- Accessing large >2GB file succeeds fails with open/read
- C compilation problem using autotools
- Control never returns from malloc()
- printf, padding integral double values
- multiple callbacks per function pointer / event
- track positions in arrays= index variables || pointers to elements?
- lexical grammar
- Best way to control that compiler manage variable names longer then 8 signs.
- Does C an ISO standard?
- C portability is a myth
- Posix regexec - matching subexpression
- C question
- Function Pointers
- text-formatting program problem...
- how disable F1 key
- gdb step
- transpose of a nx1 matrix
- C or C++ as a second language?
- intuitiv %f output
- Writing memory with GCC
- undefined behaviour seems wrong and a big error
- Making C better (by borrowing from C++)
- How to calculate size of an int without using the sizeof operator but using bitwise operator
- using mktime()
- Strange problem on GCC - PLEASE HELP!!
- Bit and Byte Order Portability
- Efficency
- pointers
- clearing read stream buffers
- Query on some code found within a struct
- conversion from void*
- read a string..writing a string
- double to int conversion yields strange results
- Your opinions on some code, please
- why this program is not crashing
- What is a sequence point?
- old style function definitions
- pointers
- cvode
- writing string field to disk file
- Anyone know a good newsgroup for Linux
- What is "image"
- Unions, storage, ABI's
- invalid pointer adress
- MATRIXES - Dinamic Memory
- scanf with strings
- pointers
- Reading whole text files
- uncode , multibye
- pointer cast to (void *) then back to original type = unchanged?
- What are anonymous objects?
- Is "scope" different from "visibility" ?
- how can I test for backspace if( (c = getchar()) == '\b' )
- Help! Esc button won't exit program
- getting cpp to insert a newline
- Data compression in Socket
- passing array to isdigit()
- C and unicode
- Union nested in structure.
- Syntax question, PASCAL vs. C
- initialize char string
- Can I buy C99 with TC1 and TC2 already taken effect in it?
- Static Variable Must Be Constant?
- Very very very basic question
- Are C pitfalls the mistake of standard or that of implementations ?
- Copy String structure "A" to string structure "B"
- Help needed with line-feed
- organizing mulitple source files
- Very strange problem using FWRITE() to write data to a binary file
- Casting return of malloc
- Best strategy for handling memory allocations
- Library of Physics Functions
- Interesting Quest - Any optimized way to find if consective one's exist in a word!
- Circular (triangular) structure reference
- [Trolling] assembly vs C language
- Casting pointer-to-void
- sscanf or vsscanf : want to scan a list of integers in c
- test
- Can a "value" overflow?
- restar program
- Linked List simple problem
- Collection libraries in C!
- color output
- dos window size
- Questions about shared libraries (.so)
- pointer sainty check
- C Unleashed Graphs are not Directed
- So I bought K&R...
- error: storage size of `xxxx' isn't known
- comma operator and assignment operator
- One Small step one infinite leap
- Checking time_t addition for overflow
- problems writing a printf/scanf function that handles both int and char input from the console
- math question in c algorithm book help please
- Inverse of printf %x format
- How to create a Text File Reformater?
- clc selected threads (30-jan-2005 to 31-jan-2005) #1
- utf8 -> ascii in c language??
- Need info about UTTARA computers or Uttara Info systems bangalore
- What exactly is lvalue & rvalue (old c.l.c. posts are all over the map)?
- Problem In code
- Will C work on the ENIAC ? ?? ?
- Any big differences between final draft before C89 and actual C89 standard?
- PLEASE HELP! Odd compilation error with GCC in Palm OS Dev. Suite
- Why C Is Not My Favourite Programming Language
- Environment Variable - Parent Process --- TIA
- can I use a pointer to step through memebers of structures?
- Array Lookup [Was: Why is "Hello World" const char* ?]
- Why is "Hello World" const char* ?
- FAQ issue: Guaranteed value ranges of fundamental types?
- is ++n equivalent to (n=n+1) ?
- syncronizing between two file descriptors open on the same file
- hide prompt when using system() on Windows
- Bitfields in a heterogenous environment
- printing bit representation of floats
- Macro Variable Argument List with __FILE__ and __LINE__
- how to write into flash memory in linux
- segmentation fault on private variable
- I've lied to the compiler and now it won't trust me
- file formating...help needed
- Off Topic: Does anybody here want a GMail account?
- History of far memory...?
- Salford project
- FTP Programming
- Conversion from Unsigned to Signed for bitwise.
- realloc() question
- EOF question...
- Finding 2 of the same elements in array
- printing % with printf(), use of \ (escape) character
- Extracting from a file
- Getting data from memory block / pointer issues.
- Does C/C++ provide something like "event".
- DDD debugger problem
- preprocessor tokenization whitespace?
- % inside if(), confused (help)
- Creating a message queue with a specific ID
- Watcom printf to stdout, I got it (was: I don't get it :-(
- Flexible array member + variable length array
- Memory management and allocation
- Is there a way to use substitutes of fixup() and _dl_lookup_symbol() in glibc?
- Pointer-to-pointer-to-pointer question
- Is the syntax for multi-dimensional arrays counter-intuitive?
- another printf question!!
- dynamicly build a list of strings?
- Detecting a PIPE in a program
- pointers to structures
- Q, 1 counting and memory usage
- eliminating unreferenced parameter warnings
- Why doesn't this print "Hi Charles"?
- meta-pragma
- Division with arrays?
- sqrt Behaving Unexpectedly --- Short Program Example
- how to read email address from a file and send mail??
- what is the prog coding for this question and what it output
- Arrh, something else is wrong! With almost identical code snipets to working code.
- help! strings
- calloc/free: a preplexing observation
- Signal Handling
- Looking for netBufLib.h
- Why do people call addresses "pointers"?
- What is affiliate marketing?
- new line character : scanf and getchar
- Why pointers can only be subtracted ?
- Pre-ANSI C functions and .NET browse information symbols
- File handling
- how to modify a txt file
- Sign error in K&R 1
- Finished a "teach yourself" book, what next?
- help broke prog up into functions now not working
- compiling quistion
- uniform random distribution
- sockets and connecting to other programs
- %x question
- UCHAR_MIN & UCHAR_MAX
- array performance
- Problems initializing a dynamically allocated 2D array
- What does this code mean???
- string initilization WHY?
- string initilization WHY?
- what is happening in C when increment this way?
- Calling subroutine in fortran module
- Nested conditional expressions ---- good idea/bad idea?
- Is my memory is not enough?
- function to count number of set bits
- Return to Start of Line?
- passing structs in and out of functions
- rand - is RAND_MAX how long before the same # will occur again?
- what is size_t
- Local variables within looping constructs
- using system("xxxxx")
- what's OOP's jargons and complexities?
- return statement at end of function
- sqrt
- Some complex function prototypes like signal()
- How to understand function prototype signal()
- Watcom printf to stdout, I don't get it :-(
- feasibilty of the memset operation on the FILE streams
- Fresher starting programming with C
- Sqrt precision ?!
- Initialize elements in an array
- run a command in background in C
- What this means? ---> struct resource *r = v, *p;
- Is there anyway to iterate STL queue ?
- integral promotion, arithmetic conversion, value preserving, unsigned preserving???
- Bit-fields and integral promotion
- reading a unformatted file
- Input unknown number of integers in a line...
- How can #define printf like function?
- string length limitation of printf
- passing a (const void *) into memset()
- passing arg char[X][Y] to function expecting (char**)
- Problems with Harbison & Steele
- What is the difference between signed and unsigned char?
- feasibility of stdin stream to feel up directly.
- some help pls
- some help pls
- Sqrt precision ?!
- reading a unformatted file
- enum...
- How to terminate a telnet session from within your C/C++ program
- [ IP validation math... ]
- error_message in cyrus imap server not working
- what is "variable-name-equivalence" in c?
- utf-8 to ascii
- use of do{...}while(0)
- ends_with() ?
- is this intentional?
- Q: recursive call to main, termination of program
- getline- to limit input (where do the unused characters in stdin go?)
- why use fprintf / size_t instead of printf/ int
- pointer to array of const objects
- Problem with integers
- substitute for string 0 termination
- the maximum memory size allowed in malloc
- Un plotter de fonctions mathematiques
- New and enhanced low cost C compilers
- porting from Borland 4.0 to Visual C 6.0
- size of a byte and int?
- Are constants and string literals considered "data objects" in c?
- strncat functionality
- simple question: namespace
- passing pointer->struct->pointer->struct to function. .. ??
- testing for the newline
- strtok/strtok_r woes
- DPMI and ISO C++ ??
- Why the Range of Int is less by one at positive side?.........
- Finding the time taken by a function
- What does const char *s mean? is s a constant or *s?
- Superbasic efficiency question
- What makes a good C/C++ programmer?
- IDE for C
- Ran across this cryptic code for C, I got blown away
- Multi-dimensional array initialization
- Rules for complex declarations
- Rules for complex declarations
- Rules for complex declarations
- Rules for complex declarations
- Rules for complex declarations
- Multi-dimensional array initialization
- Multi-dimensional array initialization
- The need for int to capture getchar()'s EOF
- Follow up on Producing Windows API program at Command Line
- Opensource developers?
- Java compiler
- "streams"
- Macro or eval() for constants at runtime?
- type conversion float and long
- how to call foreign programs from c?
- what does [ ] mean with an integer?
- interesting problem
- float values can b rounded off?
- how to write a tutorial
- solution to Knr Exercise 1-9
- __atoi64 not working correctly
- "Declaration" vs. "Definition"
- Anyone want one?
- Abstraction layer between C and CPU
- int func() v/s int func(void)
- Increment, decrement, overflow, and underflow
- Result of Comparision
- Array of pointers to structs
- Good IDE for C/C++
- coins program, need some help with crashing
- accessing msaccess by using c language
- implement atoi
- problem with round
- Reading the data from keyboard!
- SAS/C INTEROPERABLE WITH IBM C/C++
- test(sorry)
- To find the size of array using its pointer
- Programming Contest: Create a Crossword
- array initialization standard
- Implementation of sizeof, malloc, new
- is the definition of declaration is contradictory?????????
- Creating a C application to be run on another machine
- Macros with variable parameter list in MS VC Compiler (6.0)
- Books / online material on C COMPILER DESIGN
- How do the experts here quickly come up with references to standards?
- [Question]activities of stack pointer and frame pointer when function called
- array riddle in c
- LL TO BST
- multidimensional array = pointer to pointer ?
- How can i compare bit wise?
- alignment revisited
- Can function prototypes appear anywhere?
- regarding bit field structures
- position and number of 1's in an integer
- function call with arguments which takes no arguments
- Graphics in c
- c99 on Microsoft Visual Studio
- malloc vs new
- a[i] = x[a[i]]++
- help with Koenig Lookup
- Portable alloca() replacement?
- size of memory in C -- allocation
- problem with Data Files
- Need for programming
- convert a list to tree
- reading a double var byte per byte
- Array assignment via cast
- splitting functions into files
- c program
- How to read all files present in a directory in C ?
- What does "Standard C", "K&R C" , "ANSI C" mean?
- Mapping C code to assembly instructions
- Handling binary data in C - questions