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. casting from int to void* and back to int
  2. reading file backwards and parsing
  3. problem sending code via rs232
  4. Does pc-lint catch this type of problem?
  5. linking asm and c procedures
  6. encoding / decoding questions
  7. Parser
  8. ##-concatenation
  9. Diffrence between ++i and i++
  10. Dynamically growing an array (pointer question)
  11. FAT32 Disc Access
  12. Access to process memory from external programm
  13. current address
  14. strtok problem
  15. Should this work?
  16. Question on binary tree
  17. How can I use strtok for tokenize integers
  18. binary data conversion
  19. fprintf() C variables into FORTRAN input file format ???
  20. question about inet_ntoa(3)
  21. trying to read a file
  22. Specifying data types inside functions
  23. Malloc, Structure Help
  24. Work around of using 1D-LUT instead of 2D-LUT
  25. warning: multi-character character constant...help me!
  26. where standard library functions?
  27. Restricted pointer parameters in printf()
  28. Avoiding redundant functions
  29. simple problem
  30. structure containing incomplete array type
  31. fixed-point
  32. linking executables
  33. File name macro
  34. C with database
  35. Time
  36. size_t range
  37. how to determine a file is ASCII or binary?
  38. link c code with c++ code using g++
  39. how to allow only one instance?
  40. about c
  41. about ## in ANSI C
  42. rvalue
  43. netlib - Mar '04
  44. nesting coments
  45. standard reference manual
  46. macros question #2
  47. Special ascii values
  48. strncpy() and null terminated strings
  49. Conflicting Libraries
  50. multiline macro with embedded #
  51. 52 Pick Up and the 100- to-1 Rule
  52. using Dev-C++ to compile ONLY C code ?
  53. integer overflow
  54. Using C for string search etc
  55. Fast Division/Modulo Operation
  56. Defined bahavior or otherwise?
  57. i don't want the dos wondow be closed
  58. sscanf
  59. atof() failure case
  60. Why not FILE instead of FILE*?
  61. how to remove a character from a string
  62. use delete to destroy primitive/object types but memory is not freed
  63. Test a bit
  64. Pointer Indirection Syntax
  65. FILE objects
  66. Text location
  67. rule for promotion
  68. Time to standardize the XML library for C/C++
  69. utility to intentionally mangle function names?
  70. BooK "Obfsucated C and other mysteries"
  71. copy a string into a 2d array of chars
  72. const structure & member pointers
  73. Outputting text to a file
  74. Global pointer pointing to locally defined type
  75. Pipes
  76. struct my_struct *p = (struct my_struct *)malloc(sizeof(struct my_struct));
  77. opaque style question
  78. OOP using C
  79. pointer-in-array test
  80. help signed and unsigned in 64bits
  81. C library for handling ftml template
  82. converting char array to integer
  83. FAQ is so long!
  84. FAQ is so long!
  85. Critical Sections
  86. storing variable arguments for future use
  87. va_list usage
  88. pointer equality
  89. alternative to rand()
  90. macro for sizeof
  91. main function address
  92. prob w/the C prog. lang. book(ANSI C)
  93. char*& and char* ???
  94. trace of memory access
  95. Permutations of a String
  96. ftruncate() on MVS datasets.
  97. Incrementing a void pointer's member
  98. K&R
  99. odd/even bitwise and
  100. Return with no expression
  101. RoSsIaCrIiLoIA is a troll
  102. Writing a structure
  103. Question about a pointer to an array of structs
  104. Tracking the "memory growth" of a process
  105. sigaction : using "void (*sa_sigaction)(int, siginfo_t *, void *);"
  106. OT
  107. How can we use functions setwindow,scrollwindowup and scrollwindown
  108. system question
  109. Hash table: some lines of code involving pointers
  110. Strange global variable behavior
  111. writing 6 items in one line.
  112. implement set of numbers in ansi c
  113. Child process does not exit after receiving SIGTERM
  114. justification check
  115. a self-checking program in standard C
  116. safety and C
  117. CX-Post: hello world
  118. Review of my answer
  119. Global Static Variables
  120. Initialize char **
  121. Multidimensional array problems
  122. calloc problem
  123. what's the difference between the next 2 declarations?
  124. VCL TMemo find
  125. reading files from a directory
  126. info su funzione
  127. info su funzione
  128. structs with fields that are structs
  129. max{f | f is a float and -f is a float and doesn't cause overflow}== ?
  130. pointers to function problem
  131. Converting byte data to hexadecimal ascii
  132. Function definition nesting
  133. macros question
  134. How can I write my question in the message itself and not its title?
  135. how to write a macro that calculate sizeof data types
  136. how can i write C code that generate random number without using built in code
  137. what is call by name & how it is done
  138. Variable substitution
  139. Is it standard and practical to use long long types?
  140. Constant Data in function copied to stack
  141. casting from int to void* and back to int
  142. reading file backwards and parsing
  143. malloc + 4??
  144. problem sending code via rs232
  145. Does pc-lint catch this type of problem?
  146. linking asm and c procedures
  147. how to create a dropdownlist in C using C graphics
  148. encoding / decoding questions
  149. Parser
  150. ##-concatenation
  151. Diffrence between ++i and i++
  152. Problem with malloc
  153. Dynamically growing an array (pointer question)
  154. FAT32 Disc Access
  155. Access to process memory from external programm
  156. current address
  157. strtok problem
  158. structs help
  159. How can I improve these functions?
  160. Should this work?
  161. Question on binary tree
  162. How can I use strtok for tokenize integers
  163. C code to BCB
  164. binary data conversion
  165. pointer-to-pointer (invalid lvalue in unary `&)
  166. fprintf() C variables into FORTRAN input file format ???
  167. static function?
  168. Segmentation Fault
  169. question about inet_ntoa(3)
  170. trying to read a file
  171. Specifying data types inside functions
  172. Malloc, Structure Help
  173. Short circuiting..
  174. Work around of using 1D-LUT instead of 2D-LUT
  175. warning: multi-character character constant...help me!
  176. What type of questions can be asked in an technical interview of C
  177. where standard library functions?
  178. Restricted pointer parameters in printf()
  179. Pointer confusion with passing string array -- Segmentation fault
  180. sizeof(str) or sizeof(str) - 1 ?
  181. fgets and variants
  182. Avoiding redundant functions
  183. Character Points/Structs/Input
  184. simple problem
  185. structure containing incomplete array type
  186. External object definition and linkage
  187. creatingg a database application
  188. fixed-point
  189. linking executables
  190. File name macro
  191. C with database
  192. Time
  193. binary threaded trees
  194. size_t range
  195. how to determine a file is ASCII or binary?
  196. link c code with c++ code using g++
  197. how to allow only one instance?
  198. printf / sscanf unsigned long long int variables
  199. File IO in C
  200. about c
  201. French characters not recognised in C?
  202. Does ANSI C have something like PATHMAX or MAX_PATH?
  203. about ## in ANSI C
  204. rvalue
  205. netlib - Mar '04
  206. nesting coments
  207. Strange output problem
  208. function sprintf
  209. standard reference manual
  210. macros question #2
  211. How many CPU cycles does an instruction take ?
  212. Acovea 4.0: Analyzing GCC for AMD64 and ia32, through Evolution
  213. Special ascii values
  214. strncpy() and null terminated strings
  215. strtod - Dynamic Memory?
  216. Conflicting Libraries
  217. Base64
  218. using Dev-C++ to compile ONLY C code ?
  219. pointers going wild?
  220. Help with scanf
  221. What is the value of relational expression
  222. Using C for string search etc
  223. Help with scanf
  224. int array to string?
  225. Defined bahavior or otherwise?
  226. Difference between DEBUG and NDEBUG?
  227. how to remove a character from a string
  228. how to remove a character from a string
  229. use delete to destroy primitive/object types but memory is not freed
  230. use delete to destroy primitive/object types but memory is not freed
  231. Test a bit
  232. Test a bit
  233. Pointer Indirection Syntax
  234. Pointer Indirection Syntax
  235. Text location
  236. Text location
  237. Time to standardize the XML library for C/C++
  238. Time to standardize the XML library for C/C++
  239. utility to intentionally mangle function names?
  240. utility to intentionally mangle function names?
  241. BooK "Obfsucated C and other mysteries"
  242. BooK "Obfsucated C and other mysteries"
  243. copy a string into a 2d array of chars
  244. copy a string into a 2d array of chars
  245. Outputting text to a file
  246. Outputting text to a file
  247. Global pointer pointing to locally defined type
  248. Global pointer pointing to locally defined type
  249. OOP using C
  250. OOP using C
  251. pointer-in-array test
  252. pointer-in-array test
  253. help signed and unsigned in 64bits
  254. help signed and unsigned in 64bits
  255. pointer equality
  256. pointer equality
  257. alternative to rand()
  258. alternative to rand()
  259. main function address
  260. main function address
  261. macro for sizeof
  262. macro for sizeof
  263. trace of memory access
  264. trace of memory access
  265. Permutations of a String
  266. Permutations of a String
  267. ftruncate() on MVS datasets.
  268. ftruncate() on MVS datasets.
  269. K&R
  270. K&R
  271. odd/even bitwise and
  272. odd/even bitwise and
  273. Return with no expression
  274. Return with no expression
  275. Writing a structure
  276. Writing a structure
  277. Question about a pointer to an array of structs
  278. Question about a pointer to an array of structs
  279. Tracking the "memory growth" of a process
  280. Tracking the "memory growth" of a process
  281. sigaction : using "void (*sa_sigaction)(int, siginfo_t *, void *);"
  282. sigaction : using "void (*sa_sigaction)(int, siginfo_t *, void *);"
  283. How can we use functions setwindow,scrollwindowup and scrollwindown
  284. How can we use functions setwindow,scrollwindowup and scrollwindown
  285. Child process does not exit after receiving SIGTERM
  286. Child process does not exit after receiving SIGTERM
  287. justification check
  288. justification check
  289. Review of my answer
  290. Review of my answer
  291. Initialize char **
  292. Initialize char **
  293. Multidimensional array problems
  294. Multidimensional array problems
  295. calloc problem
  296. calloc problem
  297. what's the difference between the next 2 declarations?
  298. what's the difference between the next 2 declarations?
  299. VCL TMemo find
  300. VCL TMemo find
  301. structs with fields that are structs
  302. structs with fields that are structs
  303. pointers to function problem
  304. pointers to function problem
  305. Function definition nesting
  306. Function definition nesting
  307. macros question
  308. macros question
  309. How can I write my question in the message itself and not its title?
  310. How can I write my question in the message itself and not its title?
  311. how to write a macro that calculate sizeof data types
  312. how to write a macro that calculate sizeof data types
  313. how can i write C code that generate random number without using built in code
  314. how can i write C code that generate random number without using built in code
  315. what is call by name & how it is done
  316. what is call by name & how it is done
  317. malloc + 4??
  318. malloc + 4??
  319. how to create a dropdownlist in C using C graphics
  320. how to create a dropdownlist in C using C graphics
  321. Problem with malloc
  322. Problem with malloc
  323. structs help
  324. How can I improve these functions?
  325. structs help
  326. How can I improve these functions?
  327. C code to BCB
  328. pointer-to-pointer (invalid lvalue in unary `&)
  329. static function?
  330. Segmentation Fault
  331. Short circuiting..
  332. What type of questions can be asked in an technical interview of C
  333. Pointer confusion with passing string array -- Segmentation fault
  334. sizeof(str) or sizeof(str) - 1 ?
  335. fgets and variants
  336. Character Points/Structs/Input
  337. External object definition and linkage
  338. creatingg a database application
  339. binary threaded trees
  340. printf / sscanf unsigned long long int variables
  341. File IO in C
  342. French characters not recognised in C?
  343. Does ANSI C have something like PATHMAX or MAX_PATH?
  344. Strange output problem
  345. function sprintf
  346. How many CPU cycles does an instruction take ?
  347. Acovea 4.0: Analyzing GCC for AMD64 and ia32, through Evolution
  348. strtod - Dynamic Memory?
  349. Base64
  350. pointers going wild?
  351. Help with scanf
  352. What is the value of relational expression
  353. Help with scanf
  354. int array to string?
  355. Difference between DEBUG and NDEBUG?
  356. Alternative rand()-algorithm?
  357. distance() on stream iterator
  358. inline function question
  359. What is the equivalent of DLL in a Unix environment??
  360. coding a simple calculator
  361. Pointer and BitWise Operator.
  362. strlen() argument warning
  363. how to "wait for any key"
  364. pattern matching code - little help needed
  365. hacking /dev/audio
  366. Conversion to and from based real numbers
  367. [C] double/float to string
  368. [C] copy string question
  369. Saving registers in C functions
  370. header files
  371. Help wanted (cgi script)
  372. is this correct
  373. weird behaviour by gcc
  374. warning: excess elements in scalar initializer
  375. How to get the limit on it's range of the double type?
  376. Porting to Linux.
  377. allowing user to enter paragraphs
  378. How to retain function test code?
  379. How to retain function test code?
  380. reset a string. empty it totally.
  381. Reset a string?
  382. pgcc vs. gcc question - using <complex.h>
  383. interpreting a null pointer as an empty (null string)
  384. Dynamically malloc'd array of structs
  385. FSM in C?
  386. string question
  387. Code/Object analyzer for fixing
  388. Difference between strcpy() and strcat()?
  389. small bit shifting q
  390. typedef and multiple file projects
  391. mod_jk2 compilation issues on tru64 with gcc
  392. letting free() know how much to free...?
  393. extern local variables
  394. error message
  395. poss soln
  396. alligned memory allocation
  397. readdir() and S_ISDIR(stat.st_mode) question (OT ?)
  398. Optimizing a switch statement
  399. Passing va_list two times?
  400. Pointer-to-function with variable argument number
  401. bit field initialization
  402. Increasing efficiency in C
  403. Array of Pointers to Structs
  404. Why isn't srand working?
  405. cast odd boundary?
  406. MIDI project
  407. int pointing to char
  408. int/unsigned long * idiocy
  409. const char problem
  410. Arithmetic and C
  411. OFF-TOPIC:: Why Lisp is not my favorite programming language
  412. Freestanding Environment
  413. Yet another pointer related problem
  414. How to "sleep" or "delay"?
  415. float (*Data)[4] vs float *Data[4]
  416. going crazy, invalid conversion from `char*' to `char' help needed
  417. grabbing file size
  418. memory accesses
  419. Vigenere Cipher II - how to use files
  420. FILE Access
  421. read() error - Bad Address
  422. character/byte equality, again
  423. Passing commas into macros
  424. finding the name of the function
  425. Struct of pointer-to-function
  426. Serial port line termination
  427. Array typedef vs. structure
  428. Is there a difference?
  429. Please tell me if I've written this correctly
  430. Plain Char
  431. LASER Summer School on Software Engineering - call for participation
  432. error LNK2001: unresolved external symbol _errno
  433. Pixel data type
  434. Dynamic string allocation
  435. Casting (time_t)(-1)
  436. Copy-on-write tree data structure
  437. scan codes
  438. Fast sincos routine
  439. Question about #define
  440. C floating point
  441. How to make "fork/wait" to WAIT longer?
  442. Char const for backslash
  443. Wierd output instead of 0s and 1s
  444. Elementary questions from a beginner
  445. What is sequence point ?
  446. cast in memcpy()
  447. In and Out on port space within C - any standard?
  448. Doubt about pass pointer to int.
  449. type promotions
  450. is this correct
  451. Who can explain the sentence for me?
  452. A NULL pointer changed after returned?
  453. Why (long)NULL ?
  454. Standard question
  455. fork() problems
  456. zeroing structure of char pointers
  457. Press enter to continue
  458. hello world
  459. Search a binary file for a string... again! (its to slow)
  460. need help new to C programming
  461. 0a appending w/strcpy
  462. Palm programming (displaying different char-set)
  463. Test msg.
  464. MultiDim Array Challenge
  465. socket wrapper
  466. network byte order
  467. Re-using a 'va_list'
  468. Function definition into main() function.
  469. segmentation fault with printf
  470. errno-like variables in threaded environments
  471. Function definition into main() function.
  472. Check if value is defined in enum
  473. tricky do-while
  474. pointers and array
  475. Volatile variables
  476. Exist a function for path management?
  477. unsigned short;
  478. which is the better way to declare dynamic single dimension array inside struct
  479. Is that a constant expression?
  480. Combobox on gtk+ 2
  481. C String/int question + Win/Unix Compile
  482. is this valid c or a compiler bug?
  483. Connect Oracle Database C
  484. Binary constant macros
  485. new minimal xml parser Open Source
  486. How to create a simple configurationfile parser?
  487. problem with char array
  488. semantics of loating point exception handling
  489. c89 and c99
  490. help with type-punned warning please
  491. Operating System
  492. need some help with arrays
  493. 51MB size limit with fopen in append mode
  494. Efficiency of math.h
  495. pstack help
  496. Read a binary file until "\name\" is encountered...
  497. General Info wanted: IBM Z/os C/C++ compilers
  498. Linked list or realloc()?
  499. send data to log with xinetd
  500. mmap vs read/write
  501. gethostbyaddr returning null for CNAME records
  502. weird 'C' warning - can you solve this?
  503. Please help...........
  504. C Programming Assignment:
  505. ssl-connect over tcp
  506. problem parsing strings
  507. Comments requested: brief summary of C
  508. Linked List / Deleting any number of element while enumerating
  509. algorithm to split number into two pieces
  510. Lint doesn't catch signed => unsigned arg passing
  511. reading a file using fread()
  512. Looking for a C/C++ programmer in Houston
  513. value of ((int)0.7) and ((int)-0.7)
  514. dynamic memory for large arrays
  515. Difference?
  516. bitfield and enum, is this legal?
  517. procedure parameter struct order
  518. tmpnam question
  519. Creating an argument list for sprintf
  520. struct stat *stbuf seg fault
  521. getc() only returns 1500 chars on a 5 Meg file
  522. String Functions
  523. reading macro
  524. Input file donkey work.
  525. error when passing value to function
  526. Fibonacci number
  527. dictionary + binary search = counting words
  528. why does this fail in turbo c?
  529. What can C do and Basic V2 not?
  530. why doesn't it print 1.0?
  531. What is the single most helpfull guide/reference one could go to!?
  532. string assign to multi-dimension array w/o using pointer.
  533. perils of memset
  534. allocating for an array of pointers
  535. Motion Detection in JPeg frames
  536. linked lists
  537. Boxline in curses ( Linux )
  538. const char *const
  539. malloc and free
  540. Find Greater or Equal
  541. Issues with input
  542. Spelling
  543. Error handling - how to get rid of multiple flags?
  544. Loops, switches, embedded returns
  545. Keyboard = Stop
  546. Empty statement
  547. Buffered _read and _write... how to get more buffer memory?
  548. C Program before boot from WinXP
  549. malloc and calloc
  550. complexity of an algorithm