View Full Version : c answers


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 [101] 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145

  1. copy a struct
  2. The use of "free"
  3. Reuse allocated memory
  4. Correct function prototype format for ANSI C
  5. [C#] PtrToStructure problem
  6. Victims?
  7. Getting the xth bit of an unsigned charcter
  8. How to correctly read 6.2.5p26?
  9. will this code work?
  10. static variable in for loop init
  11. C sockets
  12. K&R2 Ex 5-11 : What is it asking for?
  13. structure padding
  14. Help needed: How to normalize/denormalize XML using C
  15. declaring long hex strings?
  16. My K&R Ex 5-10 program, layout looks weird.
  17. fprintf
  18. has incomplete type
  19. how can i read a jpeg file using c and send back to the browser which is requesting
  20. some pointer questions
  21. require this C malloc program analysis
  22. ij = ic: 0;
  23. C FAQ 6.7
  24. can I use __FILE__ ,__LINE__ etc. in a code witout DEBUG defined?
  25. Read from a file
  26. how to get a double from the command line
  27. getc can return EOF, but ungetc can't sent it back... why?
  28. get number at end of string
  29. Returning an array from C dll to VB
  30. whats the significance of void * here
  31. "extern struct foobar" linux compilation warning
  32. C FAQ 2.18
  33. pointer initialization
  34. wotsits
  35. Regular C Programming Contest
  36. CurrentElement->next = CurrentElement->next->next (UNDEFINED?)
  37. The size of a char array
  38. stdio.h ?
  39. "Out of Memory" error during Borland C++ 5.02 compile
  40. Pointers
  41. How to best have c++ class-style structs?
  42. regcmp warning: improper pointer/integer combination: op "="
  43. Is this correct according to C coding standards?
  44. string array
  45. Explain Macro from avr-libc
  46. determing function arguments from data on the stack
  47. Balanced binary tree with fixed leaf nodes
  48. help need for beginner
  49. .defs & .s file extension
  50. Signal 11 error (core)
  51. How to open a word document in C
  52. Simple C containers, std::vector analog
  53. Can anyone give me program to find difference between two dates?
  54. Order of function parameters evaluation
  55. why flags r used
  56. flock() working mechanism..
  57. hi
  58. book on C
  59. Header Files
  60. K&R2 Secition 5.9 - major blunders
  61. process of compiling and linking
  62. [25% OT] C library integral part of OS/kernel???
  63. why the code does not compile?
  64. C/C++ Freelancer
  65. un-obsfuscating -> into pascal an IOCCC obsfuscated program
  66. Checking fprintf for errors and testing for existence of a file
  67. What's wrong of the the code for making a list??
  68. extern inline
  69. Plauger's book on Standard Library = still valid?
  70. printf("%p\n", (void *)0);
  71. can i get a pdf book for c unleashed
  72. Help with C
  73. va_copy
  74. Simple C Statistics
  75. Recommend any online references for abstract data types in C programming??
  76. operands for relational operators <, >, >= etc
  77. formfeed \f, vertical tab \v usage
  78. default type for constants like 12.5, 1e-3, float or double ?
  79. Repost: C guide giving specifications mentioned in the standard
  80. On the fly PDF!
  81. On the FLY!
  82. how can I connect Oracle database in C language?
  83. Undefined behaviour? Accessing s twice in a statement.
  84. Problem with C language
  85. why is this allowed if FOO is undefined: #if 1 < FOO
  86. How to convert an unsigned char array into hexstring in C ?
  87. long long problem
  88. A Type Conversion Question
  89. C Implementation Of Java Interface Class
  90. union with packed struct
  91. linked lists linux kernel how they works?
  92. An Example for Discussion
  93. Custom memory allocator - alignment
  94. Can we have inline functions in c?
  95. evaluation of arguments to a function
  96. Too many one line function calls
  97. what value does lack of return or empty "return;" return
  98. if EOF = -1, can't a valid character == EOF and cause problems?
  99. Sorting a vector in ascending order
  100. Sorting a vector in ascending order
  101. C guide giving specifications mentioned in the standard
  102. Bit stuffing in C Language
  103. playback wav buffer on Mac.
  104. Q: Newbee: #include "*.h" - What happened to <>
  105. Address within structure problem
  106. collating (mixing) two linked lists using C
  107. preprocessor and enum
  108. Creating socket programs as daemon
  109. assembler design in C
  110. Variadic functions calling variadic functions with the argument list, HLL bit shifts on LE processors
  111. multi-file programs - main.c recommended?
  112. segfault handling
  113. real-time programming
  114. swapd() undefined behavior?
  115. c standard
  116. Sorting of numbers or strings.
  117. String reversal from K & R 2nd edition
  118. using localtime
  119. Check my code please?
  120. if (-1) returns true
  121. Returning pointers from functions
  122. ISO: stack trace without using a debugger
  123. Bitwise operation for division
  124. static pointer
  125. how to determine which functions are called
  126. C Stack Corruption?
  127. C Libraries
  128. trying to run PurifyPlus in windows
  129. Help with Crash Dump
  130. Variable declaration in middle of block?
  131. Maximum number of arguments in a function call
  132. padding bits...
  133. how to count number of functions in c program
  134. experience definition in interview
  135. Binary-mode i/o, width of char, endianness
  136. Can I use C99 features yet?
  137. proper way to return errors to parent process
  138. (parallel) sorting pthreads
  139. return("hello")
  140. querry about compiling and linking
  141. calling my custom function same as library function
  142. Help With Strings
  143. Riding JNI[Java Native Interface]: Java to C and back
  144. Program entering the default case of switch statement always
  145. is this definition old-style or new-style
  146. "Streams"
  147. +++ SAN JOSE: SOFTWARE QA/TEST MANAGER, EMBEDDED SYSTEMS +++
  148. removing substring from string
  149. Odd Macro Problem
  150. Please critique my code/program
  151. Preprocessor log()?
  152. use of ++i, i++
  153. Reading/Writing other files from inside a C program
  154. how do I pass a generic comparison function?
  155. having trouble with basic multithreading
  156. comparison is always false due to limited range of data type
  157. Main function not defined
  158. Storing variable length data in file -- Paging
  159. functions
  160. C prog study
  161. #ifdef vs #if vs #if defined
  162. LDOM - Last Day of Month
  163. pointer to array v/s array of pointers
  164. getopt_long problem
  165. Beginner's question
  166. Projection of fractal surfaces
  167. Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting
  168. const function??
  169. Using a C++ class in C source file
  170. Why error in this code??? char*
  171. is (!ptr) or (ptr) valid way to check for NULL or NOT NULL?
  172. KWIC-indexing.............
  173. GCC linker throws weird message.
  174. How to check for internet connection
  175. string validation for int and long (strisint, strislong)
  176. where does cc send the output by default
  177. identity theft
  178. Python Online Programming Contest
  179. The Wisdom of 6.5.5(6)
  180. longjmp to the callee
  181. read vs fread
  182. cannot create 'c' executables
  183. assembly in a C language program
  184. doubt on regarding stacks
  185. Calculate the date after subtracting nmbr of days form a date
  186. Problems with DST in tm Structure
  187. calling a macro with ommitted input parameter?
  188. Trying to declare identifier locally and hide a file scope identifier
  189. linked list implementation
  190. Modulus of a negative number
  191. Program and Dr. Watson crashes for unknown reasons...
  192. calling external program from within C++
  193. The C Programming Language: Third Edition
  194. C linker error
  195. can I know how to write a html parser in C
  196. '#' conversion flag in printf() doesn't work with NULL character
  197. typedef declares object / enum to int
  198. char (*ptr)[]
  199. Video Playback Resources?
  200. "extern" inside a block
  201. generic data range monitor
  202. need expert help
  203. Memory leaks with realloc()
  204. Q: Newbee. Read and convert CSV file...
  205. PLZ ANYBODY KNOWS WHY ICAP PROTOCOL IS USED?
  206. greedy method
  207. streaming proxy
  208. Limit on maximum number of register variable in C program
  209. C question about Pointers and assembly
  210. Pointer doubt
  211. memset vs bzero
  212. help me understand this char array please....
  213. scripting
  214. Is this board a good alternative to the PC?
  215. expression evaluation : help!
  216. getting copilation error with gcc 3.4.2
  217. pow() problem
  218. Converting seconds to (Days, Hours, Minutes, seconds)
  219. error when allocating memory using a pointer inside a struct via a function
  220. number of machine instructions - for algorithm measuring
  221. FAQ 4.9 and void**
  222. My computer getting stuck when I debug in Visual C++
  223. "Bus Error" related to compiler option
  224. UCS-2 to ASCII
  225. is this stadard C?
  226. Function to replace multiple occurence of substring in a string
  227. what does it do?
  228. Temporary program suspension
  229. Portable?
  230. client server program code
  231. Variable list in pre-processor define
  232. Is correct ?
  233. how to use va_list
  234. how to use va_list
  235. Why Warning?
  236. Please help optimize (and standarize) this code...
  237. How to awake blocked socket read?
  238. what is .i file?
  239. HELP:I should in which newsgroup ??
  240. Help understanding this Macro
  241. Do objects have type?
  242. [Slightly OT] Trying to simulate OOP with C
  243. Fast Food nutrition database
  244. bitwise operators
  245. the algorithm of decimal<->binary conversion
  246. warning: assignment makes integer from pointer without a cast
  247. Reg virtual function and friend function
  248. Reg. copy constructor
  249. CR-NL, NL and ftell
  250. Literature incorrectly using word "scope"
  251. Verify that line exists in a file
  252. [C99] local VLA with dimension given by a global var?
  253. Binary number
  254. Drawing and images in C
  255. LPTSTR to char *.. How
  256. porting non-malloc code to malloc
  257. Segmentation fault in mallopt/malloc call
  258. Regular Expression
  259. where can i get the c library source code
  260. A salutary tale about alignment and undefined behaviour
  261. Fast addition for n+1 or n+0
  262. beginner's questions
  263. Doubt about how a linker generates a memory image
  264. virtual address or physical address?
  265. Spacefed Friends Online Gaming Community. Join Us!
  266. if?
  267. how to write a wrapper function?
  268. "token" "token sequence" "scalar variable" "vector" ??
  269. is casting (void*) to (FILE*) good?
  270. match enum to char* ?
  271. accessing and storing character arguements from command line
  272. getdate...
  273. if I define a function with no parameters, should i put void?
  274. Passing array to function
  275. sending text for editing in console
  276. Code in ASCII UTF8??
  277. Vmalloc help
  278. stringify with embedded quotes
  279. pcre.c : And Operator
  280. const ptr to const ptr ?
  281. what does this declaration mean?
  282. i want to use functions that don't return int, without declaring them
  283. converting a point known by 4 distances to xyz coordinates?
  284. need good IDE
  285. tanjent function - can someone check my code
  286. Taking advantage of cotiguous bytes in struct = portable?
  287. ( ) in precedecene table refer to function call or parenthesis?
  288. how to get aliagned memory using malloc
  289. name space and typedef
  290. ummm...... how to evaluate the formulae??
  291. Laptops, iPods, camcoders etc...
  292. shift right operator
  293. How to detect if file is deleted
  294. Testing a float for equivalence to a double.
  295. unsigned int with signed long int (same width) - how is conversion done?
  296. how this program works
  297. Help with research
  298. calling function that takes char**
  299. Search algorithm to use
  300. (float *()) means???
  301. C&C++ sources compiled as c++ with g++ (mingw)
  302. Portable pointer comparison
  303. va_copy in called function
  304. Sending output to printer
  305. bit vector
  306. Passing variable length arguements to another function.
  307. Accessing large >2GB file succeeds fails with open/read
  308. C compilation problem using autotools
  309. Control never returns from malloc()
  310. printf, padding integral double values
  311. multiple callbacks per function pointer / event
  312. track positions in arrays= index variables || pointers to elements?
  313. lexical grammar
  314. Best way to control that compiler manage variable names longer then 8 signs.
  315. Does C an ISO standard?
  316. C portability is a myth
  317. Posix regexec - matching subexpression
  318. C question
  319. Function Pointers
  320. text-formatting program problem...
  321. how disable F1 key
  322. gdb step
  323. transpose of a nx1 matrix
  324. C or C++ as a second language?
  325. intuitiv %f output
  326. undefined behaviour seems wrong and a big error
  327. Writing memory with GCC
  328. Making C better (by borrowing from C++)
  329. How to calculate size of an int without using the sizeof operator but using bitwise operator
  330. using mktime()
  331. Strange problem on GCC - PLEASE HELP!!
  332. Bit and Byte Order Portability
  333. Efficency
  334. pointers
  335. clearing read stream buffers
  336. Query on some code found within a struct
  337. conversion from void*
  338. read a string..writing a string
  339. double to int conversion yields strange results
  340. Your opinions on some code, please
  341. why this program is not crashing
  342. What is a sequence point?
  343. old style function definitions
  344. pointers
  345. cvode
  346. writing string field to disk file
  347. Anyone know a good newsgroup for Linux
  348. What is "image"
  349. Unions, storage, ABI's
  350. invalid pointer adress
  351. MATRIXES - Dinamic Memory
  352. scanf with strings
  353. pointers
  354. Reading whole text files
  355. uncode , multibye
  356. pointer cast to (void *) then back to original type = unchanged?
  357. What are anonymous objects?
  358. Is "scope" different from "visibility" ?
  359. how can I test for backspace if( (c = getchar()) == '\b' )
  360. Help! Esc button won't exit program
  361. getting cpp to insert a newline
  362. Data compression in Socket
  363. passing array to isdigit()
  364. C and unicode
  365. Union nested in structure.
  366. Syntax question, PASCAL vs. C
  367. initialize char string
  368. Can I buy C99 with TC1 and TC2 already taken effect in it?
  369. Static Variable Must Be Constant?
  370. Very very very basic question
  371. Are C pitfalls the mistake of standard or that of implementations ?
  372. Copy String structure "A" to string structure "B"
  373. Help needed with line-feed
  374. organizing mulitple source files
  375. Very strange problem using FWRITE() to write data to a binary file
  376. Casting return of malloc
  377. Best strategy for handling memory allocations
  378. Library of Physics Functions
  379. Interesting Quest - Any optimized way to find if consective one's exist in a word!
  380. Circular (triangular) structure reference
  381. [Trolling] assembly vs C language
  382. Casting pointer-to-void
  383. sscanf or vsscanf : want to scan a list of integers in c
  384. test
  385. Can a "value" overflow?
  386. Linked List simple problem
  387. restar program
  388. Collection libraries in C!
  389. color output
  390. dos window size
  391. Questions about shared libraries (.so)
  392. pointer sainty check
  393. C Unleashed Graphs are not Directed
  394. So I bought K&R...
  395. error: storage size of `xxxx' isn't known
  396. comma operator and assignment operator
  397. Checking time_t addition for overflow
  398. problems writing a printf/scanf function that handles both int and char input from the console
  399. math question in c algorithm book help please
  400. Inverse of printf %x format
  401. How to create a Text File Reformater?
  402. clc selected threads (30-jan-2005 to 31-jan-2005) #1
  403. utf8 -> ascii in c language??
  404. Need info about UTTARA computers or Uttara Info systems bangalore
  405. What exactly is lvalue & rvalue (old c.l.c. posts are all over the map)?
  406. Problem In code
  407. Will C work on the ENIAC ? ?? ?
  408. Any big differences between final draft before C89 and actual C89 standard?
  409. PLEASE HELP! Odd compilation error with GCC in Palm OS Dev. Suite
  410. Why C Is Not My Favourite Programming Language
  411. Environment Variable - Parent Process --- TIA
  412. can I use a pointer to step through memebers of structures?
  413. Array Lookup [Was: Why is "Hello World" const char* ?]
  414. Why is "Hello World" const char* ?
  415. FAQ issue: Guaranteed value ranges of fundamental types?
  416. is ++n equivalent to (n=n+1) ?
  417. syncronizing between two file descriptors open on the same file
  418. hide prompt when using system() on Windows
  419. Bitfields in a heterogenous environment
  420. printing bit representation of floats
  421. Macro Variable Argument List with __FILE__ and __LINE__
  422. how to write into flash memory in linux
  423. segmentation fault on private variable
  424. I've lied to the compiler and now it won't trust me
  425. file formating...help needed
  426. Off Topic: Does anybody here want a GMail account?
  427. History of far memory...?
  428. Salford project
  429. FTP Programming
  430. Conversion from Unsigned to Signed for bitwise.
  431. realloc() question
  432. EOF question...
  433. Finding 2 of the same elements in array
  434. printing % with printf(), use of \ (escape) character
  435. Extracting from a file
  436. Getting data from memory block / pointer issues.
  437. Does C/C++ provide something like "event".
  438. DDD debugger problem
  439. preprocessor tokenization whitespace?
  440. % inside if(), confused (help)
  441. Creating a message queue with a specific ID
  442. Watcom printf to stdout, I got it (was: I don't get it :-(
  443. Flexible array member + variable length array
  444. Memory management and allocation
  445. Is there a way to use substitutes of fixup() and _dl_lookup_symbol() in glibc?
  446. Pointer-to-pointer-to-pointer question
  447. Is the syntax for multi-dimensional arrays counter-intuitive?
  448. another printf question!!
  449. dynamicly build a list of strings?
  450. Detecting a PIPE in a program
  451. pointers to structures
  452. Q, 1 counting and memory usage
  453. eliminating unreferenced parameter warnings
  454. Why doesn't this print "Hi Charles"?
  455. meta-pragma
  456. Division with arrays?
  457. sqrt Behaving Unexpectedly --- Short Program Example
  458. how to read email address from a file and send mail??
  459. what is the prog coding for this question and what it output
  460. Arrh, something else is wrong! With almost identical code snipets to working code.
  461. help! strings
  462. calloc/free: a preplexing observation
  463. Signal Handling
  464. Looking for netBufLib.h
  465. Why do people call addresses "pointers"?
  466. What is affiliate marketing?
  467. new line character : scanf and getchar
  468. Why pointers can only be subtracted ?
  469. Pre-ANSI C functions and .NET browse information symbols
  470. File handling
  471. how to modify a txt file
  472. Sign error in K&R 1
  473. Finished a "teach yourself" book, what next?
  474. help broke prog up into functions now not working
  475. compiling quistion
  476. uniform random distribution
  477. sockets and connecting to other programs
  478. %x question
  479. UCHAR_MIN & UCHAR_MAX
  480. array performance
  481. Problems initializing a dynamically allocated 2D array
  482. What does this code mean???
  483. string initilization WHY?
  484. string initilization WHY?
  485. what is happening in C when increment this way?
  486. Calling subroutine in fortran module
  487. Nested conditional expressions ---- good idea/bad idea?
  488. Is my memory is not enough?
  489. function to count number of set bits
  490. Return to Start of Line?
  491. passing structs in and out of functions
  492. rand - is RAND_MAX how long before the same # will occur again?
  493. what is size_t
  494. Local variables within looping constructs
  495. using system("xxxxx")
  496. what's OOP's jargons and complexities?
  497. return statement at end of function
  498. sqrt
  499. Some complex function prototypes like signal()
  500. How to understand function prototype signal()
  501. Watcom printf to stdout, I don't get it :-(
  502. feasibilty of the memset operation on the FILE streams
  503. Fresher starting programming with C
  504. Sqrt precision ?!
  505. Initialize elements in an array
  506. run a command in background in C
  507. What this means? ---> struct resource *r = v, *p;
  508. Is there anyway to iterate STL queue ?
  509. integral promotion, arithmetic conversion, value preserving, unsigned preserving???
  510. Bit-fields and integral promotion
  511. reading a unformatted file
  512. Input unknown number of integers in a line...
  513. How can #define printf like function?
  514. string length limitation of printf
  515. passing a (const void *) into memset()
  516. passing arg char[X][Y] to function expecting (char**)
  517. Problems with Harbison & Steele
  518. What is the difference between signed and unsigned char?
  519. feasibility of stdin stream to feel up directly.
  520. some help pls
  521. some help pls
  522. Sqrt precision ?!
  523. reading a unformatted file
  524. enum...
  525. How to terminate a telnet session from within your C/C++ program
  526. [ IP validation math... ]
  527. error_message in cyrus imap server not working
  528. what is "variable-name-equivalence" in c?
  529. utf-8 to ascii
  530. use of do{...}while(0)
  531. ends_with() ?
  532. is this intentional?
  533. Q: recursive call to main, termination of program
  534. getline- to limit input (where do the unused characters in stdin go?)
  535. why use fprintf / size_t instead of printf/ int
  536. pointer to array of const objects
  537. Problem with integers
  538. substitute for string 0 termination
  539. the maximum memory size allowed in malloc
  540. Un plotter de fonctions mathematiques
  541. New and enhanced low cost C compilers
  542. porting from Borland 4.0 to Visual C 6.0
  543. size of a byte and int?
  544. Are constants and string literals considered "data objects" in c?
  545. strncat functionality
  546. simple question: namespace
  547. passing pointer->struct->pointer->struct to function. .. ??
  548. testing for the newline
  549. strtok/strtok_r woes
  550. DPMI and ISO C++ ??