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. const char *const
  2. malloc and free
  3. Find Greater or Equal
  4. Issues with input
  5. Spelling
  6. Error handling - how to get rid of multiple flags?
  7. Loops, switches, embedded returns
  8. Keyboard = Stop
  9. Empty statement
  10. Buffered _read and _write... how to get more buffer memory?
  11. C Program before boot from WinXP
  12. malloc and calloc
  13. complexity of an algorithm
  14. writing a plugin for ethereal ... where to start
  15. New Webmaster Forum
  16. Most negative double value
  17. Crosscompile host linux target mac os x
  18. "Hello World" without semicolon with a difference
  19. Style - imbedding data files
  20. malloc Q
  21. Referencing/forward declarations
  22. How to define a define that defines some defines ?
  23. What is difference b/w "UNSPECIFIED" and "UNDEFINED" behaviour ?
  24. Looking for an intro C programming book?
  25. How do i found out the number of lines in a file
  26. Memory Allocation for Dynamic Alloccation
  27. Regarding Switch statement
  28. Question on Pointer Indirections
  29. multi dimension arrays
  30. struct problem
  31. problems with copying/editing strings
  32. forward declaration for typedef of unnamed structs
  33. Copying structures of different type
  34. about hash table
  35. pointers to pointers
  36. global scope on paramaters
  37. Weird problem: sscanf
  38. RPC question
  39. How to handle this problem in MS VC++
  40. a shorter strchr
  41. which is the better path
  42. question on fread()
  43. C dangerous?
  44. edit list
  45. Leaked Windows 2000 Source Code File
  46. Einsendeaufgabe
  47. How to read/write raw bytes from a flash card in C++?
  48. A Vector
  49. Statements and expressions.
  50. 32x32 and 64x64 signed integer multiplication
  51. Problem with pointer to array of structures
  52. Problems dereferensing my C structures (custom types)
  53. need help regarding Natural language parsing!!
  54. Error in typedef
  55. Floating point literals
  56. how to simplify/shorten this loop of bit shifting code?
  57. [ansi 89] inline
  58. JPEG/TIFF routines?
  59. array end issue
  60. Security
  61. Portable assignment
  62. Whats wrong with this crc32 code?
  63. Why the zero case in fabs()?
  64. char * vs. const char *
  65. Losing a variable
  66. C function Parser
  67. Programming / malloc Q
  68. Why is sizeof(arrayname)=4 and not 67 in function?
  69. execlp() - mystery arg
  70. Requirements of floating point comparisons
  71. Data Alignment Macros?
  72. volatile const int foo
  73. Learning c, need a little help with compiling.
  74. Segmentation fault need help
  75. Use of const in parameter specification
  76. binary output to stdout in Windows
  77. Win32 hardware coding
  78. How to call an external command?
  79. redefinition
  80. comma in string
  81. Long long int
  82. Array of Pointers Question
  83. Problem - program exited with code 0377
  84. using bits as flags
  85. 'erf' function in C
  86. Bounds checked string library
  87. Bounds checked arrays
  88. About bitfields
  89. Help with Select
  90. Volatile variables in C!!
  91. The behaviour of getchar()
  92. Building an application..
  93. Off Topic: Question about pipes
  94. If a cast from void* to a struct type pointer fails
  95. is casting a variadic function to a non-variadic one legal?
  96. max value in an array
  97. macros and functions
  98. Reading from array is faster than writing ???
  99. Yet another nitpicky style question
  100. initialize serial port
  101. what "google" do to search a pattern
  102. Acessing registers with C
  103. malloc - to cast or not to cast, that is the question...
  104. pointers switch function
  105. Pointer Qs
  106. signed and unsigned char
  107. Help with warning when using calloc/malloc
  108. Assiciativity
  109. searching a substring
  110. Typecasting
  111. gdb SIGSEGV
  112. strtol question
  113. linked list
  114. WOMPAT 2004
  115. Looping problem (revisited for better reading)
  116. quickest way to determine character sizes
  117. Globals vs passing in by reference
  118. a looping problem.....
  119. why shoule write code like these?
  120. string concatenation
  121. Tricky Code
  122. Just want to know why
  123. netlib - Jan '04
  124. struct's first member and the NULL pointer
  125. Converting ASM to C
  126. Bits How to program them
  127. How to find a string in a stream of binary data?
  128. How to get make to work under Cygwin bash shell
  129. Bitz and Bytes : 2004
  130. extend/shrink heap ?
  131. volatile ptr question
  132. pow problem
  133. writting / reading signal points to a file in c
  134. printf with run-time format strings
  135. utf-8 string functions in c
  136. call by address vs. call by value
  137. Need help: Pointer to String
  138. Topic Nazis (OR Mystery: static variables & performance)
  139. Software Quality & Fault Measurement
  140. K&R chapter 6.3 Question 'how to calculate the number of array elements'
  141. problem in K&R answer book
  142. Get the difference between two dates in terms of days
  143. How to detail a struct content (almost) just like adebugger does ?
  144. i18n charset question
  145. const array declaration
  146. Usoing fopen etc is there a way to find file size
  147. Is this code a portable?
  148. reading decimal data....
  149. K&r typo
  150. gtk+-2.0, right align the cursor in a GtkEntry
  151. How can i read a directory listing into an array
  152. const array declaration
  153. VSIPL
  154. Iterative Merge Sort Using Circular Linked List
  155. Problem with structs and strings in C
  156. javadoc like
  157. accessing array element as pointer
  158. Main [was File IO]
  159. return all non-blank lines in a file(linux)
  160. Variable Length Packet
  161. Cannot create file for write
  162. size of a sizeof(pointer)
  163. Append to char *
  164. Check if a directory is empty and empty it
  165. pointers and files
  166. how to increment pointer in a file
  167. sprintf function
  168. Again on passing arrays as arguments
  169. First argument lost when doing exec
  170. Troll Alert
  171. undefined behavior or not undefined behavior? That is the question
  172. convert a single to multiuser.. in sock.c program
  173. register caching of static variables
  174. how to run the index with 1, 2, 2,3,4,5..... in an array from a do loop
  175. Memory allocation questions
  176. returning array size
  177. how to manage temporary files in C ?
  178. How to Parse a CSV formatted text file
  179. Vigenere Cipher
  180. getdents
  181. calculate value of 73!
  182. Mystery: static variables & performance
  183. question on pointer notation
  184. placement of volatile in typedef of struct
  185. to cast or not to cast malloc ?
  186. code review
  187. monitors in C?
  188. Fibonacci series and the exact longitude and latitude
  189. Memory question
  190. How to pass by reference a dinamic array to a C routine
  191. calculations in C, userinterface in PHP
  192. Segmentation Fault
  193. random numbers
  194. floor(-0.5)
  195. How to read data columnwise
  196. floor(-0.5)
  197. How to calculate size of an array of dynaically malloc'd structs?
  198. Identifier collisions between global level and static identifiers
  199. Purify problem or compiler problem?
  200. Can anyone improve this any further......
  201. number of 1's in an integer
  202. Problem with prints twice instead of once.
  203. Is D better than C?
  204. Review: My C FAQ Page
  205. memory oraganisation??
  206. lvalues -> incomplete types
  207. Interpreting some C code
  208. How to use a function with variable number of arguments
  209. generating waves
  210. Why runtime alignment could be useful
  211. Announcing new scripting/prototyping language
  212. efficiency concern: when to really use unsigned ints and when not to
  213. A quick question
  214. big to little endian
  215. Struggling with bsearch - on a struct!
  216. C Linked List -
  217. finding redundant #includes to shorten compile time
  218. can we write program without loops
  219. Book Opinion-Expert C programming
  220. How would I use qsort to sort a struct with a char* member and a long member - I want to sort in order of the long member
  221. beginer C question
  222. Union type variable assignation --- in expression, in function argues
  223. PCI-1751 DI/DO control in comedi
  224. output to *.xls
  225. #define Question
  226. REQ:Pascal to C converter for WinXp please
  227. Masking
  228. [C] simple string question
  229. C to Pro COBOL Problem - Bytes Shifted by 4
  230. A C tutorial
  231. why does my code stop responding...?
  232. Will reading from stdin() flush output to stdout()?
  233. A more efficient way
  234. Another style question
  235. Style question
  236. WASHINGTON POST = HOG-WASH POST
  237. increment doubt
  238. Wanting to Learn
  239. getenv and carriage returns
  240. Problems when reading from a file with fscanf
  241. Collating multi-byte strings
  242. Groupware - Opengroupware server codes in C/ C++?
  243. system shell command
  244. System programming - creating a shell
  245. <time .h> in the standard,Why?
  246. writing a shell in c
  247. K&R 2 exercise 2-3
  248. C program works on W98 but not new WXP machine
  249. Need help with c macro.
  250. Program without conditional Statements - Possible ?
  251. FSM (Finite State Machine) Generator - Open Source
  252. Condensing nested switch statements
  253. ***what is the reason for this strange problem?***
  254. Why isn't there a logical XOR operator?
  255. struct hack question
  256. Segmentation fault
  257. online C programming test
  258. Up-to-dateness of the c.l.c. FAQ
  259. What's the best way to create an associative array in C?
  260. Is it really necessary?
  261. Sufficient error checking of strtol()?
  262. Help for students, provided by a Scientists Group
  263. Questions, please
  264. Trouble calculating 5th root of a given number using C
  265. (Info) Test Your C Programming Strengths
  266. A few things remain unclear...
  267. Too obfuscated?
  268. determine offset point
  269. variable length record using struct/union - help
  270. using typedef for structures in C
  271. malloc and calloc
  272. Initialization of global variables
  273. array to pointer decay question !!
  274. problem with using Fortran routine in C.
  275. getting resource information: battery level and more
  276. stringise DBL_DIG
  277. standard change
  278. test
  279. running c program
  280. Recording trigger
  281. Any C/C++ LINT type checking recomendations
  282. how can i make functions which behaves like printf
  283. new arm board
  284. Polymorphism in C
  285. string copy
  286. How to check if child is done executing ...
  287. C routines for Special Functions
  288. API function won't compile using CYGWIN g++; Interpreting error message
  289. ANSI C - Filsize ?
  290. the trouble with mex c
  291. Allocating space for char*?
  292. c/c++ compiler on windows
  293. Efficient Text File Copy
  294. longjmp vs goto
  295. expected printf() output
  296. floating point precision problem
  297. PowerTCP SSL Socket
  298. the story of a socket connect and a char array :-)
  299. Is getopt() standard C? etc.
  300. How many Zen Buddhists does it take to cast malloc()s return value?
  301. Question re. integral promotion, signed->unsigned
  302. sockets
  303. encoding matter
  304. Review: 3D-Array
  305. Which Is The Best C Compiler?
  306. create xml file with using C to Pocket PC?
  307. nomenclature issue
  308. loop performance question
  309. Casting (signed long)(unsigned long)
  310. atoi function
  311. Problems with getvect/setvect under Borland C 3.1
  312. string question
  313. Aho Corasick source code needed, please help
  314. Socket, C and Windows
  315. C perfomance
  316. passing a value of a variable from one function to another
  317. Network Traffic Models Generation
  318. Error in Preprocessing
  319. parser generator which supports unicode?
  320. Problem with fread()
  321. writing program from a book
  322. Machinista 2004
  323. A situation
  324. function to round a float to an int?
  325. problem related to printf!! why is it so???
  326. indeterminate value leading to undefined behavior?
  327. integer division
  328. Using pointer as a array (help)
  329. linked lists
  330. objects in C
  331. unionists versus separatists
  332. strncmp performance
  333. Is this legal C code?
  334. qsort clobbering memory location
  335. Coding style survey
  336. Partial build/link... is it possible in unix?
  337. old style C function
  338. Multi-dimensional array initialization
  339. Symbol undefined? Linker error!
  340. Network Programming: Multithreads
  341. Help, I need config.h for windows
  342. difference
  343. about sizeof(char)
  344. Using different constants for different porjects.
  345. [crosspost] Perl -> C
  346. getopt
  347. Fgetc returns the wrong character (0a -> 0d)
  348. itoa in pure C
  349. want a better version of this
  350. perils of sizeof
  351. read int(long) from a file
  352. TIP: Using a delay in C
  353. Call to free() sefaults
  354. Trying to implement MD5
  355. Initializer for an array of pointers to arrays of strings
  356. Multiple returns
  357. Memory usage v/s complexity -- which one better?
  358. C programming Help
  359. Disadvantages of malloc()
  360. Determine OS and compiler
  361. Is this portable/c-std at all?
  362. Probelm with results
  363. FAR * in 64-bit machines
  364. complier for openrisc with c
  365. Casting ? Help urgently needed!
  366. length of an array using sizeof() - problem
  367. Datastructure and Algorithms
  368. why is casting malloc a bad thing?
  369. How do I inhibit warning 528?
  370. How should I sort a struct
  371. Arrays
  372. scanf() wierdness
  373. Using splint on C files under MS VC6
  374. platform independent serialization of a long
  375. fscanf and NULL
  376. Reusing a va_list
  377. writing hex to a binary file
  378. How would I loop through all the files in a subdirectory?
  379. Heap vs Stack allocations
  380. Is there a C runtime file delete function?
  381. comparing long integers
  382. Preprocessor brain drain
  383. Convert DBF file to text file.
  384. operation on pointer
  385. signed/unsigned int
  386. freeing of char**
  387. Programming and Style Guidelines for C
  388. Problem with calculating the size of an array
  389. Why noy 'return' not portable but exit() does ?
  390. What are C89 and C99 ?
  391. structures --assignment?
  392. CSV Format in C language
  393. Atomic function
  394. Efficienct structure array
  395. multidimensional arrays and cute tricks
  396. Return value from system() on Linux
  397. getopt_long() problems
  398. find string in a text file
  399. A question of speed
  400. Test if pointer points to allocated memory
  401. How to use maximum size of size_t type ?
  402. A simple base-converter program
  403. What's wrong about const?
  404. multi-word remote shell parameters from a variable
  405. Help with a progam
  406. is there any powerful program that can.....
  407. c runtime
  408. Foolishness is rampant :-)
  409. gets() fgets() with subdivide.c tilepack.c squarect.c
  410. associativity
  411. What is the data-type of pcap?
  412. prevent dumping core file?
  413. Extracting first n chars from a string
  414. Static Variables
  415. pointer question (pretty basic)...
  416. I'm confused by Const
  417. clean method to read bit position?
  418. Why this MACRO does not work?
  419. Code Review: Structures
  420. main argument curiosity
  421. RFC: clc-compliant pseudo-random number generator
  422. Comments please
  423. best C tutorial/s online?
  424. How do I read a csv file into a structure?
  425. I need your help
  426. dll question
  427. qsort question
  428. Printf question
  429. && and || Operator precedence enforcement
  430. what is setjump() ?
  431. the different between function and procedure for C/C++ and Pascal
  432. Extent of the "as-if" rule
  433. Strange MACRO Problem
  434. [Maybe OT] How to convince people about the importance of ANSI standards conformance ?
  435. questionable cast
  436. char ** questions
  437. Getting keyboard input in C
  438. program
  439. C standard document
  440. inb() keyboard port
  441. C reference guide
  442. Float confusion
  443. float confusion
  444. Help with building a string
  445. Struct with string pointers
  446. struct and string pointers
  447. int main(int argc, char *argv[] ) vs int main(int argc, char **argv )
  448. Accessing alternate union members
  449. When should use C?
  450. help with sorting
  451. help needed please!
  452. looking for tutorial on creating DLL
  453. fgetc() past EOF
  454. error at compiling
  455. char *fred; char * fred; char *fred; any difference?
  456. Calling a function of unknown type
  457. zOS: fopen for record-IO with any LRECL and RECFM
  458. Sending messages to a menu but never returning
  459. How To Get To Fortran Common Variables Within a C Code
  460. argv[0], etc
  461. Something wrong in my program
  462. Yet another comma operator question
  463. New design ARM board for 2004
  464. function problem
  465. array of bits
  466. structure toupper\lower?
  467. Just value copied?
  468. AVL implementation in C
  469. programs holds on malloc
  470. Slow performance with new 3GHz Machine using FlushFileBuffers
  471. question about cast
  472. is this allowed in c ?
  473. Stack overflow in function ...
  474. two questions
  475. Serial Communication Code example
  476. Two basic questions
  477. Opening file...
  478. sizeof C integral types
  479. typedef and declaration of function
  480. portability concerns
  481. splitting a string and putting it into an array?
  482. splitting a string and putting it into an array?
  483. problem with linked list
  484. Why strncpy(s, t, n) doesn't put '\0' at the end?
  485. splitting a string and put it into an array
  486. Code Review: strncpy
  487. Question about EOF
  488. About extract call graph from C source code
  489. Logical And
  490. good editor
  491. trying to construct an array.....
  492. problems with sprintf...
  493. Returning a pointer to a function
  494. custom header files
  495. Random Numbers?
  496. C macros tuts needed
  497. worst.c - foolishness
  498. NFA to DFA
  499. using write() instead of puts() in a trivial program?
  500. Passing pointer to function using DLSYM()
  501. fclose
  502. clean exit - suggestion - C version
  503. FENV_ACCESS and "pure" functions
  504. fopen(log_file, "a");
  505. Correct use of va_copy
  506. how to stop bufferring on STDOUT
  507. Bounds Checking?
  508. Are bit-variables in PICC a good idea
  509. variable number of arguments
  510. avoiding CTRL-ALT-DEL by mistake
  511. fstat
  512. Reading data from webcam
  513. pointers
  514. help with little program in C
  515. Need to Improve my skill set in C
  516. undefined behavior defined
  517. Is memcpy secure?
  518. Question about "Pointers on C"
  519. Visual Studio Problems > Debugging
  520. static variable thread safe?
  521. C program to read & print UTF-8 characters on Linux
  522. FILE I/O in reverse order?
  523. Assumption
  524. how to call C++ from C?
  525. Problem with calling Kernel32 function "Sleep()"
  526. debuging win32 app
  527. How to get PID of a process from a C program
  528. detach thread in c?
  529. freeconsole and continue program?
  530. Find IP with a RegExp
  531. (void)data
  532. new ARM board for 2004
  533. online literatures
  534. passing arrays of strings
  535. Visual Studio 2004 Enterprise
  536. implementation details
  537. convert string to pointer to pointer?
  538. need help with c compiler
  539. Some basic error - what am I missing? (NaNs)
  540. Microphone?
  541. Malloc question
  542. question on const
  543. Getting file size of binary file
  544. Converting hexa to decimal
  545. is C useful ?
  546. web base download
  547. Bit mask
  548. 17th IOCCC now open!
  549. global struct declarations
  550. Good way of checking if file exists ?