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. How can I open a file, skip first 2 lines and get the 50th character?
  2. compiling
  3. Set bits
  4. Source
  5. Multibyte string length
  6. inline assem problem with -fPIC gcc3.3.1
  7. C++
  8. The strangest problem....
  9. Carriage Returns
  10. anyone know about pthread_delay_np() function??
  11. Directory path
  12. clock() function
  13. array decay
  14. Any difference in creating array of strings
  15. Counter Intuitive Results: Optimising an FFT routine for Speed
  16. trapping library calls
  17. How to keep the address of one array in my case?
  18. i am writting a mail server with C
  19. why not use C?
  20. warning: assignment discards qualifiers from pointer target type
  21. direct access with fpos_t doesnt work
  22. Just for fun
  23. Segmentation fault
  24. Trapping Ctrl-C, how?
  25. Casting a pointer to an enum
  26. Direct floppy disk access
  27. use of long double
  28. mysql_query hang's up
  29. Counter Intuitive Results: Optimising an FFT routine for Speed
  30. Counter Intuitive Results: Optimising an FFT routine for Speed
  31. release the memory help
  32. mktime and DST.
  33. How to access the global
  34. Is this a valid data structure??
  35. creating a thread
  36. Formatting numbers
  37. 3-d Integration Routine is Needed
  38. linux kernel system call
  39. Pre-offsetof() question
  40. 1254-002 Cannot find a rule to create target /u02/apps_r/dev/ben/lib/fcfz02.a from dependencies.
  41. Counter Intuitive Results: Optimising an FFT routine for Speed
  42. Still having trouble with malloc
  43. int (*daytab)[13] vs int *daytab[13]
  44. unicode
  45. The size of a bitarray??
  46. Functioning In C
  47. malloc
  48. Setting Time in C
  49. arithmetic on pointer to an incomplete type
  50. fscanf or fgets still misses last line unless there is a newline
  51. help request: clahe.c Graphics Gems
  52. sign magnitude, ones complement, two's complement
  53. why still use C?
  54. problems turning int into float (simple problem)
  55. recursively draw the line
  56. C Inlining
  57. A doubt about C's tree data struct
  58. Is argv[0] guaranteed to be a valid pointer?
  59. one before the end of array
  60. Read output from system( ).
  61. static allocation question...
  62. if(myInputString == "&&") fails, why?
  63. Typedef - multiple declarations
  64. Too Big
  65. casting pointers
  66. freeing memory....partially
  67. how to use fopen()?
  68. newlines in text files
  69. array of pointers on functions
  70. To coerce or not...? struct sockaddr vs struct sockaddr_in
  71. screwed up programmer
  72. Question on stack frame allocation space
  73. passing ptr to function to another function
  74. Funny
  75. malloc segmentation fault
  76. Avoiding Implicit Casting
  77. Today's Foxtrot comic strip
  78. Images (jpeg) in C programming
  79. default const
  80. What does f(x++) mean?
  81. code Critics please..
  82. const type question
  83. #if CONSTANT == 1 checking problem
  84. IAR, __ASM(), and *.s33 to *.C files
  85. Parsing error!?
  86. Function Overloading
  87. Fourier transforms (coefficient calculation)...
  88. Anyone mind reviewing my code?
  89. bulk assignment to structure
  90. Preprocessor directive
  91. programming style: which is clearer? (iteration vs. recursion)
  92. Linked list with void *
  93. Backup your projects neatly
  94. How dirty is setjmp+fopen+longjmp ?
  95. Attn. C gurus
  96. Stack & recursion Question
  97. Download
  98. clock() for timing
  99. how to avoid loop overhead of for(), while()
  100. Library call question
  101. Programmable Logic Circuits and C
  102. Parsing C declarations [savestruct]
  103. printing array elements
  104. A guide to reading C declarations available on my website
  105. integer and floating-point bit pattern
  106. Understanding ++
  107. Compilation with preprocessor macros defined with no value
  108. Binding problem - address already in use
  109. restrict
  110. Revue "Programmez !"
  111. Output undefined?
  112. Gap of two 0x00 between structs.....
  113. Circular Queue data structure ..
  114. bitwise not operator
  115. Multiple instance of process - memory conflicts
  116. Memory Managemant in C
  117. Monty Hall simulator: is there a better way to do this?
  118. Bit shifting for log of 2
  119. 8.8 notation....
  120. static lib
  121. Is it possible to perform CRC checks on Linked Lists?
  122. Differences between 'const char' and 'char'
  123. Integer to Binary
  124. Compile C Code With A CPP Compiler?
  125. Can the current file position indicator ever be greater the actual file size?
  126. RTL (Register Transfer Language) file
  127. pointers in structures?
  128. a compilation problem
  129. Question
  130. unions with long long ints and doubles?
  131. ANSI C Summary reposted
  132. for(;;) or while(1)?
  133. char *p = "longenough";
  134. New compiler?
  135. Segmentation fault
  136. what is a static function in C ?
  137. What does this warning means?
  138. "_pthread_deactivatex" problem under AIX
  139. Challenging BitManipulation puzzles...
  140. Programmign CPU registry related question.
  141. linking problem
  142. First C program
  143. same function name in different files
  144. operator precedance
  145. strcpy Question
  146. Wrapping, I am confused
  147. struct declaration and using free()
  148. Struct member access with macro
  149. array's access with address confusion
  150. Variable length array confusion
  151. zero-based array, in function confucsion
  152. logical OR obfuscation
  153. Did you know?
  154. Bus Error?
  155. wtf is this?
  156. About FAQ 1.14
  157. About FAQ 1.14
  158. Parameters and the Stack
  159. prints out an unsigned long in decimal
  160. test whether a number is a power of 2
  161. Learning C question
  162. sorry about "xyz"
  163. struct initializer { 0 }
  164. xyz
  165. Runtime type-safety (for linked lists)
  166. Encapsulation & Macro Functions
  167. Encapsulation & Macro Functions
  168. fslurp() critique
  169. what's the best way to time your code?
  170. extract records
  171. reading 32bits from a file
  172. Input problem
  173. Line input and implementation-defined behaviour
  174. How to kill all inherrit process by codeing in C
  175. fill space
  176. resolved: difference between memcpy and memmove
  177. New C programmer
  178. code review/comments please
  179. variable length arrays
  180. reading binary text
  181. strcpy and strcat problem
  182. array of pointer
  183. 'extern'ing variables
  184. displaying underlying representation of integers
  185. How to cast function pointer?
  186. Register Variables
  187. printf prototype UB
  188. struct timeVal
  189. Problem converting a huge Program into small ones
  190. reverse byte
  191. Arrays and Pointers to Arrays
  192. level of questions for experts only
  193. Cross-Platform Sockets in C?
  194. Learned something new today - thoughts?
  195. declaration of variables inside functions in C
  196. big number crunching in C
  197. returning (char **) values
  198. NULL: Is it guaranteed to evaluate 'not true'
  199. access to msaccess
  200. randomizing integers
  201. Structure
  202. some queries on freeing memory allocated using malloc
  203. gets, fgets Question
  204. compile problem
  205. Array at specific address
  206. opinion on enum
  207. String, String literal ? Could anyone explain to me ?
  208. Graph Implementation in C
  209. Hashtable implementation in C
  210. what's K&R2?
  211. [Q] Initialise a struct with variable length cahracter strings
  212. what'd the difference between STDIN and Keyboard buffer ?
  213. Call for Participation - JRobots Programming Challenge
  214. Void Pointer Question
  215. Looking for Mathematics and Date libraries for VC 6.0
  216. floating point error: overflow?
  217. floating point error: overflow?
  218. null and NULL: is there any difference?
  219. null and NULL: is there any difference?
  220. Re Books on developing portable C suites
  221. Re Books on developing portable C suites
  222. Worm storms
  223. Worm storms
  224. can't close a file??
  225. Question on switch
  226. Sign-extension?
  227. can't close a file??
  228. Question on switch
  229. Sign-extension?
  230. Needed help for strtof return value
  231. Unions
  232. what's wrong with this code?
  233. What does this error mean?
  234. No Experience
  235. memory alignment
  236. Compile problem
  237. strcmpi
  238. array <-> pointer Question
  239. JPG, PNG, GIF -> BMP
  240. memory alignment
  241. Operator Order
  242. Cyclic array problem
  243. gcc. mkstemp works but I can't write to the new files.
  244. Coding for the CPU cache?
  245. Two questions (see inside)
  246. Conio.h
  247. GUI ?
  248. C functions for JAR files
  249. 3-byte ints
  250. confusing macro
  251. array decay
  252. mfc / c++ directory creation problem
  253. can i access 'p' even after free(p);
  254. comparing numbers
  255. Memory Alloc/Dealloc query
  256. checking for stack overflow in recursive function
  257. hmmm, no C99
  258. Confusing itoa and atoi
  259. Your opinion
  260. vssvc.exe
  261. unsigned and signed 0
  262. fork + syslog blocking
  263. Program for compression
  264. My language is broken in oracle
  265. send message to ICQ and MSN Messenger
  266. The % puzzles me.....
  267. solving differential equation
  268. How to compare these variables by use operator 'AND'
  269. Linked-list's different insertions, help
  270. Linked list question
  271. program that prints its source code
  272. Q: please
  273. question
  274. doubt in USING POINTERS
  275. how to multiply two integers using bitwise operators
  276. # and ## operators
  277. Information you need to survive!
  278. binary tree?
  279. function explanation
  280. dll ?
  281. macro name from macro?
  282. feof usage
  283. const really constant?
  284. strdup
  285. is '\0' == 0
  286. dumb q moving to gcc - c99 mode
  287. converting char * in struct to a long value
  288. What use is void?
  289. Program structure
  290. Problem with array of structures
  291. Segfault with dynamically created 2-D array
  292. Accesing frames from a video capture card with C
  293. Help me in this program
  294. i need to create C program. Any one have Code
  295. File manipulation problem
  296. is it any good to use typedef ?
  297. what strspn and strpbrk stands for ?
  298. How to read string out of file with pointer?
  299. gmp.h questions
  300. incorporer des librairies avec la commande gcc
  301. Reading large files
  302. How to chek if USB port is mounted in linux?
  303. mulitiplication using bitwise operators
  304. how to convert 16-bit binary fraction to a float
  305. sprintf()
  306. structures and functions
  307. Test
  308. Set Cookie: ???
  309. What is "Pointer Alignment"
  310. losing my file pointer
  311. Bus Error
  312. msg to all
  313. about Pointer
  314. rewinding stdin
  315. arrays: negative index values
  316. missiles with parabolic paths for Magnant (C language).
  317. next quarter
  318. opinion wanted about global vars
  319. strcat problem again
  320. fopen causing malloc error - HELP!
  321. bit operation on leading 8 bits
  322. passing 2d array and realloc
  323. including libs by #pragma comment -> order of libs
  324. Iterate over a range of Array
  325. diff between #define & const
  326. interview question & answer required
  327. self deletable .exe
  328. diff between memmove & memecpy
  329. many question on C
  330. Enviroment variable on Linux _and_ Windows
  331. question, about implicit conversions
  332. unions: initialization and assignment
  333. (OT) floating-point numbers
  334. curiosity: structure assignments in C (and unions within structs)
  335. why overflow?
  336. union initializers idiosyncrasies
  337. no. of byte problem
  338. Students Fro Academic Freedom
  339. Macro argument bounds checking?
  340. allocate memory in function
  341. How to determine (in compile time) whether a compiler supports wide characters or not
  342. How to determine whether a compiler supports wide character or not
  343. Ways fopen() Failes
  344. parsing config file
  345. FAQ 2.6
  346. Naming convention for pointer-to-foo types
  347. Trying to read a c program
  348. Escape sequences and printing
  349. Contrived casting situation
  350. Nested for loop; curios behaviour?
  351. %f undefined behavior?
  352. ethic on Includes
  353. help me! -- K&R exercise 1-11
  354. Structure memory allocation
  355. file read -- increase the size of an array
  356. who delete mine?
  357. FILE undeclared - but its not, according to me.
  358. How can I know how many elements are there in multi-dimentional array?
  359. variables in format strings -- printf
  360. float to unsigned char array
  361. memory usage
  362. pass 2-dim array as param
  363. Why the code doesn't work the way I wanted ?
  364. free() an empty string ?
  365. Clearing an array
  366. C novice question...
  367. data structure for graph
  368. current time
  369. bind to a specific IP address
  370. "smart" indexing
  371. While statement problem
  372. String and null character
  373. For loop equivalent with the preprocessor
  374. return address of new memory
  375. Timestamp header
  376. compilation process
  377. A problem of SoftEng
  378. Plotting Graph in C
  379. %p and casting
  380. compound literals
  381. Why the code doesn't work ?
  382. library with abstract data types?
  383. Does any CVM [ C virtual Machine] exist?
  384. Structures and Variable Functions
  385. Designated struct initializers with Visual C++
  386. Why segmentation fault
  387. Is it OK to modify argv ???
  388. Strange command line args problem
  389. problem with generating random numbers !
  390. Pseudocode For Statement
  391. I need help with C for Linux
  392. inputting strings.
  393. Representation of integers
  394. Initialization without loop
  395. Syntax
  396. void arg to function
  397. Checking whether '\0' exists in the string
  398. style question
  399. x^y function?
  400. Rollover Issue
  401. Roman numerals to ints
  402. Textbook
  403. Trigraphs
  404. Are there any pre-defined variables in C?
  405. Preprocessor's question
  406. reading in command line argument
  407. strcat problem
  408. Need Help with C program
  409. alleged mis-form with strcat
  410. Has anybody used Doxygen on aolserver source?
  411. escape sequence
  412. Which style is better?
  413. C Code Editor Formatting Unix-Windows
  414. How to display the last n lines from a text file
  415. Having problems returning a char* from a function..need help...
  416. "The C Standard" in book form is here!
  417. 8 Bit CRC
  418. Associating strings with an enum (can I use a macro?)
  419. C flowcharting program
  420. Compiler bug - Postincrement & Preincrement operators
  421. why does this segfault??
  422. Dynamic string arrays?
  423. trap representation
  424. Converting Vbasic code to C code
  425. Maximum value for typedef'd type
  426. About sizeof
  427. array of strings?
  428. Is this well-defined?
  429. basic c i/o and EOF
  430. basic c i/o and EOF
  431. meaning of "1u"
  432. calloc
  433. multidimensional arrays as function parameter
  434. Please help! char* problems!
  435. About initializaion list
  436. regarding sites about C test questions
  437. bits
  438. Largest possible value of Integer Constants
  439. Anybody know how I would code an error statement when a user inputs an invalid input.
  440. How to change an icon in C?
  441. Order of parameter evaulation
  442. malloc a 2D array
  443. How to test for -0.0?
  444. When (32-bit) double precision isn't precise enough
  445. Technical Instruction Position
  446. replacing a string in a char pointer
  447. Problems with ASM/C
  448. initializing arrays of arrays
  449. What is the difference between MACRO and FUNCTION?
  450. how to implement a menu ?
  451. Basic Use of Malloc
  452. Declaration Problem.
  453. Why doesn't this function call save these registers?
  454. Question about disasembled function call on linux and
  455. Parse timestamp string
  456. Many Happy Returns
  457. basic #define usage
  458. Char to char*?
  459. Better Rand() Algorithim
  460. unwanted implicit casts
  461. C- Advice
  462. TAking the minimum of three values
  463. Looping logic
  464. Compile error: wrong machine type
  465. int *a, indicator fault
  466. Using strcat
  467. type casting question
  468. Human-readable storage for types (with no pointers)?
  469. need an advise: Graphic & Sound Programming
  470. Queues in C
  471. Sending a file to the printer, how?
  472. file locking
  473. array of void*
  474. Any preprocessing tool with {} insertion option?
  475. use select to detect input andtimeout
  476. select and timing
  477. tcp and fork
  478. question about database
  479. Comparing char* with integers and characters
  480. Keyboard Buffer
  481. How to compare one character of a string to a char?
  482. Precision Issue with STRTOF
  483. req: DES source code
  484. sizeof(struct dirent.d_ino)
  485. Linker
  486. Help needed to count lines between preprocessor directives
  487. Linker problem?
  488. derived
  489. GNU standard library sources
  490. How can I know it is a macro or actually is a function?
  491. Grade Program Question
  492. derivate
  493. bitwise absolute value
  494. How to create a directory?
  495. Used of using const char*
  496. very strange gcc output
  497. question about gprof
  498. question about gprof
  499. question about gprof
  500. is it possible to find out the caller of a method programmatically
  501. Structure and ASCII "Database"
  502. Copy Files to a network drive in Win2000
  503. malloc and calloc in Linux
  504. New OOP Framework using C
  505. structured lang?
  506. "As-if" rule question
  507. New OOP Framework using C
  508. structured lang?
  509. "As-if" rule question
  510. Array initialisation
  511. Array initialisation
  512. Fixed BCD code.
  513. free(); after return();?
  514. why doesn't this work?
  515. malloc experiments
  516. Fixed BCD code.
  517. Audio Recording and transfer using TCP/IP
  518. creating a variable from constant
  519. Function as macro parameter
  520. free(); after return();?
  521. why doesn't this work?
  522. malloc experiments
  523. Audio Recording and transfer using TCP/IP
  524. creating a variable from constant
  525. Function as macro parameter
  526. newb: inputting int-s
  527. How can I use malloc-ed memory inside a local function
  528. Greater than operator Vs Equal to operator : Which one is efficient?
  529. warning C4047:
  530. strtok trouble
  531. searching in a huge data pool?
  532. newb: inputting int-s
  533. How can I use malloc-ed memory inside a local function
  534. Greater than operator Vs Equal to operator : Which one is efficient?
  535. warning C4047:
  536. strtok trouble
  537. searching in a huge data pool?
  538. Code Review: Averaging program
  539. how to cantenate strings in C
  540. Constant macro parameters
  541. Flush stdin?
  542. need ring buffer source code
  543. ? about reading a comma delimited file
  544. treat array as a file
  545. decimal to BCD for long int
  546. Thank you to clc
  547. scanf/cin problem
  548. strings.h
  549. what is the significance