matt_mods

C references guide

Dec 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.53 KB | None | 0 0
  1. C references guide:
  2.  
  3. =====================Carrages======================
  4. \n = newline
  5. \0 = null
  6. \t = tab
  7. \b = backspace
  8. \v = virtical tab
  9. \f = form feed
  10. \a = audiable aleart
  11. \\ = backslash
  12. \? = question mark
  13. \' = single quote
  14. \" = double quote
  15. \xhh = hex value
  16. \000 = octal value
  17.  
  18. ===============specifiers================
  19. %d = an integer
  20. %ld = long integer
  21. %f = floating point number
  22. %c = a single character
  23. %s = a string of characters
  24. %p = a memory address
  25. ================keywords=================
  26. auto
  27. break
  28. case
  29. char
  30. const
  31. continue
  32. default
  33. do
  34. double
  35. else
  36. enum
  37. extern
  38. float
  39. for
  40. goto
  41. if
  42. int
  43. long
  44. register
  45. return
  46. short
  47. signed
  48. static
  49. struct
  50. switch
  51. typedef
  52. union
  53. unsigned
  54. void
  55. volatile
  56. while
  57.  
  58. ============standard Libaries=============
  59. stdio.h = contains input and output functions.
  60. ctype.h = Contains functions for testing characters.
  61. string.h = contains functions to manipulate strings.
  62. math.h = contains mathematical functions.
  63. stdlib.h = contains utility functions for storage allocation.
  64. assert.h = contains functions that can add diagnostics.
  65. stdarg.h = contains a function that steps through other function arguments.
  66. setjump.h = contains a function that can be used to avoid normal calls.
  67. signal.h = contains functions for handling exceptional conditions.
  68. time.h = contains function manipulating date and time.
  69. limits.h = contains constant definitions for size of data types.
  70. float.h = contains constant definitions relating to floating point numbers.
  71.  
  72. ===========================data types========================
  73. char = A single byte, which can Store a single character.
  74. int = a whole number.
  75. float = a decimal point number which is correct up to 6 decimal points.
  76. double = a decimal number which is correct to 1 decimal points.
  77.  
  78. ========================math functions=======================
  79. + = addition
  80. - = subtraction
  81. * = multiplication
  82. / = division
  83. % = modulus (remander Fremont a devision)
  84. ++ = increment
  85. -- = decrement
  86.  
  87. ========================assignment===========================
  88. = = assigning
  89. += = plus then assigning
  90. -= = minus then assigning
  91. *= = multiplying then assigning
  92. /= = divide then assigning
  93. %= = modulus then assigning
  94.  
  95. =====================comparing values========================
  96. == = equal to
  97. != = not equal to
  98. > = greater then
  99. < = less then
  100. >= = greater then or equal to
  101. <= = less then or equal to
  102.  
  103. ======================assigning logic========================
  104. && = AND
  105. || = OR
  106. ! = NOT
  107.  
  108. ==================comparing bit values=======================
  109. | = OR
  110. & = AND
  111. ~ = NOT
  112. ^ = XOR
  113. << = Shift Left
  114. >> = Shift Right
  115.  
  116. =====================Precedence==============================
  117. () = function call:Left to Right
  118. [] = Array index:Left to Right
  119. -> = struct pointer:Left to Right
  120. . = struct member:Left to Right
  121. ! = NOT:Right to Left
  122. ~ = Bitwise NOT: Right to Left
  123. ++ = increment: Right to Left
  124. -- = Decrement:Right to Left
  125. + = positive sign:Right to Left
  126. - = negative sign:Right to Left
  127. sizeof = size of a data type: Right to Left
  128. * = pointer: Right to Left
  129. & = address mapping:Right to Left
  130. Adressof = addresses of certain data types:Right to Left
  131. * = multiply:Left to Right
  132. / = divide:Left to Right
  133. % = modulus:Left to Right
  134. + = add:Left to Right
  135. - = subtract:Left to Right
  136. << = Shift Left: Left to Right
  137. >> = Shift Right:Left to Right
  138. < = less then: Left to Right
  139. <= = less then or equal to: Left to Right
  140. > = greater then: Left to Right
  141. >= = greater then or equal to: Left to Right
  142. == = equality: Left to Right
  143. != = inequality: Left to Right
  144. & = Bitwise AND: Left to Right
  145. ^ = Bitwise XOR:Left to Right
  146. | = Bitwise OR: Left to Right
  147. && = AND: Left to Right
  148. || = OR:Left to Right
  149. ?: = conditional: Right to Left
  150. = = assignment: Right to Left
  151. += = plus then assigning: Right to Left
  152. -= = subtract then assigning: Right to Left
  153. *= = multiply then assigning: Right to Left
  154. /= = divide then assigning: Right to Left
  155. %= = modules then assigning: Right to Left
  156. ^= = XOR and assigning: Right to Left
  157. |= Or and assigning: Right to Left
  158. <<= Shift Left and assigning: Right to Left
  159. >>= Shift Right and assigning: Right to Left
  160. , = comma: Left to Right
  161.  
  162. ==================file permissions===========================
  163. r = open an existing file to read
  164. w = open an existing file to write to. Creates new file if doesn't exist
  165. a = appends text to the end of the file
  166. r+ = opens a text file to read from or write to
  167. w+ = open a text file to write to or read from
  168. a+ opens a text file to read from and write to at the end
  169.  
  170. ======================date and time==========================
  171. int tm_sec = seconds after the minute, normally 0-59
  172. int tm_min = minuets after the hour, 0-59
  173. int tm_hour = hours since midnight, 0-23
  174. int tm_mday = day of the month, 1-31
  175. int tm_mon = months since January, 0-11
  176. int tm_wday = says since Sunday, 0-6
  177. int tm_yday = days since January 1st, 0-365
  178. int tm_isdst = is daylight saving mode in effect
  179.  
  180. ===================ASCII character codes=====================
  181.  
  182. code: | char: | description:
  183. 0 NUL null
  184. 1 SOH Start Of Heading
  185. 2 STX Start of Text
  186. 3 ETX End of Text
  187. 4 EOT End Of Trasmission
  188. 5 ENQ enquiry
  189. 6 ACK Acknowledgement
  190. 7 BEL Bell
  191. 8 BS BackSpace
  192. 9 TAB Horizontal tab
  193. 10 NL NewLine
  194. 11
  195. 12
  196. 13
  197. 14
  198. 15
  199. 16
  200. 17
  201. 18
  202. 19
  203. 20
  204. 21
  205. 22
  206. 23
  207. 24
  208. 25
  209. 26
  210. 27
  211. 28
  212. 29
  213. 30
  214. 31
  215. 32
  216. 33
  217. 34
  218. 35
  219. 36
  220. 37
  221. 38
  222. 39
  223. 40
  224. 41
  225. 42
  226. 43
  227. 44
  228. 45
  229. 46
  230. 47
  231. 48
  232. 49
  233. 50
  234. 51
  235. 52
  236. 53
  237. 54
  238. 55
  239. 56
  240. 57
  241. 58
  242. 59
  243. 60
  244. 61
  245. 62
  246. 63
  247. 64
  248. 65
  249. 66
  250. 67
  251. 68
  252. 69
  253. 70
  254. 71
  255. 72
  256. 73
  257. 74
  258. 75
  259. 76
  260. 77
  261. 78
  262. 79
  263. 80
  264. 81
  265. 82
  266. 83
  267. 84
  268. 85
  269. 86
  270. 87
  271. 88
  272. 89
  273. 90
  274. 91
  275. 92
  276. 93
  277. 94
  278. 95
  279. 96
  280. 97
  281. 98
  282. 99
  283. 100
  284. 101
  285. 102
  286. 103
  287. 104
  288. 105
  289. 106
  290. 107
  291. 108
  292. 109
  293. 110
  294. 111
  295. 112
  296. 113
  297. 114
  298. 115
  299. 116
  300. 117
  301. 118
  302. 119
  303. 120
  304. 121
  305. 122
  306. 123
  307. 124
  308. 125
  309. 126
  310. 127
  311. 128
  312. 129
  313. 130
  314. 131
  315. 132
  316. 133
  317. 134
  318. 135
  319. 136
  320. 137
  321. 138
  322. 139
  323. 140
  324. 141
  325. 142
  326. 143
  327. 144
  328. 145
  329. 146
  330. 147
  331. 148
  332. 149
  333. 150
  334. 151
  335. 152
  336. 153
  337. 154
  338. 155
  339. 156
  340. 157
  341. 158
  342. 159
  343. 160
  344. 161
  345. 162
  346. 163
  347. 164
  348. 165
  349. 166
  350. 167
  351. 168
  352. 169
  353. 170
  354. 171
  355. 172
  356. 173
  357. 174
  358. 175
  359. 176
  360. 177
  361. 178
  362. 179
  363. 180
  364. 181
  365. 182
  366. 183
  367. 184
  368. 185
  369. 186
  370. 187
  371. 188
  372. 189
  373. 190
  374. 191
  375. 192
  376. 193
  377. 194
  378. 195
  379. 196
  380. 197
  381. 198
  382. 199
  383. 200
  384. 201
  385. 202
  386. 203
  387. 204
  388. 205
  389. 206
  390. 207
  391. 208
  392. 209
  393. 210
  394. 211
  395. 212
  396. 213
  397. 214
  398. 215
  399. 216
  400. 217
  401. 218
  402. 219
  403. 220
  404. 221
  405. 222
  406. 223
  407. 224
  408. 225
  409. 226
  410. 227
  411. 228
  412. 229
  413. 230
  414. 231
  415. 232
  416. 233
  417. 234
  418. 235
  419. 236
  420. 237
  421. 238
  422. 239
  423. 240
  424. 241
  425. 242
  426. 243
  427. 244
  428. 245
  429. 246
  430. 247
  431. 248
  432. 249
  433. 250
  434. 251
  435. 252
  436. 253
  437. 254
  438. 255
  439.  
  440. =================Input and Ouput Functions===================
  441.  
  442. ==================Charter Test Functions=====================
  443.  
  444. ===================String Functions==========================
  445.  
  446. ====================math functions===========================
  447.  
  448. ===================Utlity Functions==========================
  449.  
  450. =================Diagnotic Functions=========================
  451.  
  452. ==================Argument Functions=========================
  453.  
  454. ================Date and Time Functions======================
  455.  
  456. ===================Jump Functions============================
  457.  
  458. ==================Signal Functions===========================
  459.  
  460. ===================Limit Constants===========================
  461.  
  462. ===================Float Constants===========================
Add Comment
Please, Sign In to add comment