fork download
  1. rm -rf ft_printf.o
  2. rm -rf libftprintf.a
  3. gcc -c -Wall -Wextra -Werror ft_printf.c -I .
  4. ar rc libftprintf.a ft_printf.o
  5. FAILED TESTS:
  6.  
  7. # TEST NUMBER (TYPE OF ARG)
  8. INSTRUCTION();
  9. 1. your function ft_printf
  10. 2. unix function printf
  11. (returned value) -->written on stdout<--
  12.  
  13. # 0007
  14. ft_printf("%5%");
  15. 1. ( 1) -->5<--
  16. 2. ( 5) --> %<--
  17.  
  18. # 0008
  19. ft_printf("%-5%");
  20. 1. ( 1) -->5<--
  21. 2. ( 5) -->% <--
  22.  
  23. # 0009
  24. ft_printf("%.0%");
  25. 1. ( 2) -->.0<--
  26. 2. ( 1) -->%<--
  27.  
  28. # 0011 (char *)
  29. ft_printf("% %", "test");
  30. 1. ( 2) --> <--
  31. 2. ( 1) -->%<--
  32.  
  33. # 0021 (int)
  34. ft_printf("%10x", 42);
  35. 1. ( 3) -->10x<--
  36. 2. ( 10) --> 2a<--
  37.  
  38. # 0022 (int)
  39. ft_printf("%-10x", 42);
  40. 1. ( 3) -->10x<--
  41. 2. ( 10) -->2a <--
  42.  
  43. # 0033 (int)
  44. ft_printf("%010x", 542);
  45. 1. ( 3) -->10x<--
  46. 2. ( 10) -->000000021e<--
  47.  
  48. # 0034 (int)
  49. ft_printf("%-15x", 542);
  50. 1. ( 3) -->15x<--
  51. 2. ( 15) -->21e <--
  52.  
  53. # 0035 (int)
  54. ft_printf("%2x", 542);
  55. 1. ( 2) -->2x<--
  56. 2. ( 3) -->21e<--
  57.  
  58. # 0036 (int)
  59. ft_printf("%.2x", 5427);
  60. 1. ( 3) -->.2x<--
  61. 2. ( 4) -->1533<--
  62.  
  63. # 0037 (int)
  64. ft_printf("%5.2x", 5427);
  65. 1. ( 4) -->5.2x<--
  66. 2. ( 5) --> 1533<--
  67.  
  68. # 0038 (int)
  69. ft_printf("%#x", 42);
  70. 1. ( 1) -->x<--
  71. 2. ( 4) -->0x2a<--
  72.  
  73. # 0039 (int)
  74. ft_printf("%#llx", 9223372036854775807);
  75. 1. ( 3) -->llx<--
  76. 2. ( 18) -->0x7fffffffffffffff<--
  77.  
  78. # 0040 (int)
  79. ft_printf("%#x", 0);
  80. 1. ( 1) -->x<--
  81. 2. ( 1) -->0<--
  82.  
  83. # 0041 (int)
  84. ft_printf("%#x", 42);
  85. 1. ( 1) -->x<--
  86. 2. ( 4) -->0x2a<--
  87.  
  88. # 0042 (int)
  89. ft_printf("%#X", 42);
  90. 1. ( 1) -->X<--
  91. 2. ( 4) -->0X2A<--
  92.  
  93. # 0043 (int)
  94. ft_printf("%#8x", 42);
  95. 1. ( 2) -->8x<--
  96. 2. ( 8) --> 0x2a<--
  97.  
  98. # 0044 (int)
  99. ft_printf("%#08x", 42);
  100. 1. ( 3) -->08x<--
  101. 2. ( 8) -->0x00002a<--
  102.  
  103. # 0045 (int)
  104. ft_printf("%#-08x", 42);
  105. 1. ( 4) -->-08x<--
  106. 2. ( 8) -->0x2a <--
  107.  
  108. # 0046 (int)
  109. ft_printf("@moulitest: %#.x %#.0x", 0, 0);
  110. 1. ( 18) -->@moulitest: .x .0x<--
  111. 2. ( 13) -->@moulitest: <--
  112.  
  113. # 0047 (int)
  114. ft_printf("@moulitest: %.x %.0x", 0, 0);
  115. 1. ( 18) -->@moulitest: .x .0x<--
  116. 2. ( 13) -->@moulitest: <--
  117.  
  118. # 0048 (int)
  119. ft_printf("@moulitest: %5.x %5.0x", 0, 0);
  120. 1. ( 20) -->@moulitest: 5.x 5.0x<--
  121. 2. ( 23) -->@moulitest: <--
  122.  
  123. # 0056 (char *)
  124. ft_printf("%10s is a string", "this");
  125. 1. ( 15) -->10s is a string<--
  126. 2. ( 22) --> this is a string<--
  127.  
  128. # 0057 (char *)
  129. ft_printf("%.2s is a string", "this");
  130. 1. ( 15) -->.2s is a string<--
  131. 2. ( 14) -->th is a string<--
  132.  
  133. # 0058 (char *)
  134. ft_printf("%5.2s is a string", "this");
  135. 1. ( 16) -->5.2s is a string<--
  136. 2. ( 17) --> th is a string<--
  137.  
  138. # 0059 (char *)
  139. ft_printf("%10s is a string", "");
  140. 1. ( 15) -->10s is a string<--
  141. 2. ( 22) --> is a string<--
  142.  
  143. # 0060 (char *)
  144. ft_printf("%.2s is a string", "");
  145. 1. ( 15) -->.2s is a string<--
  146. 2. ( 12) --> is a string<--
  147.  
  148. # 0061 (char *)
  149. ft_printf("%5.2s is a string", "");
  150. 1. ( 16) -->5.2s is a string<--
  151. 2. ( 17) --> is a string<--
  152.  
  153. # 0062 (char *)
  154. ft_printf("%-10s is a string", "this");
  155. 1. ( 15) -->10s is a string<--
  156. 2. ( 22) -->this is a string<--
  157.  
  158. # 0063 (char *)
  159. ft_printf("%-.2s is a string", "this");
  160. 1. ( 15) -->.2s is a string<--
  161. 2. ( 14) -->th is a string<--
  162.  
  163. # 0064 (char *)
  164. ft_printf("%-5.2s is a string", "this");
  165. 1. ( 16) -->5.2s is a string<--
  166. 2. ( 17) -->th is a string<--
  167.  
  168. # 0065 (char *)
  169. ft_printf("%-10s is a string", "");
  170. 1. ( 15) -->10s is a string<--
  171. 2. ( 22) --> is a string<--
  172.  
  173. # 0066 (char *)
  174. ft_printf("%-.2s is a string", "");
  175. 1. ( 15) -->.2s is a string<--
  176. 2. ( 12) --> is a string<--
  177.  
  178. # 0067 (char *)
  179. ft_printf("%-5.2s is a string", "");
  180. 1. ( 16) -->5.2s is a string<--
  181. 2. ( 17) --> is a string<--
  182.  
  183. # 0073 (NULL)
  184. ft_printf("@moulitest: %s", NULL);
  185. 1. ( 34) -->@moulitest: (null)@moulitest: NULL<--
  186. 2. ( 16) -->@moulitest: (null)@moulitest: NULL<--
  187.  
  188. # 0074 (NULL)
  189. ft_printf("%.2c", NULL);
  190. 1. ( 3) -->.2c<--
  191. 2. ( 1) --><--
  192.  
  193. # 0077 (char)
  194. ft_printf("%5c", 42);
  195. 1. ( 2) -->5c<--
  196. 2. ( 5) --> *<--
  197.  
  198. # 0078 (char)
  199. ft_printf("%-5c", 42);
  200. 1. ( 2) -->5c<--
  201. 2. ( 5) -->* <--
  202.  
  203. # 0080 (char)
  204. ft_printf("%2c", 0);
  205. 1. ( 2) -->2c<--
  206. 2. ( 2) --> <--
  207.  
  208. # 0082 (char)
  209. ft_printf("% c", 0);
  210. 1. ( 1) -->c<--
  211. 2. ( 1) --><--
  212.  
  213. # 0084 (int)
  214. ft_printf("%5o", 41);
  215. 1. ( 2) -->5o<--
  216. 2. ( 5) --> 51<--
  217.  
  218. # 0085 (int)
  219. ft_printf("%05o", 42);
  220. 1. ( 2) -->5o<--
  221. 2. ( 5) -->00052<--
  222.  
  223. # 0086 (int)
  224. ft_printf("%-5o", 2500);
  225. 1. ( 2) -->5o<--
  226. 2. ( 5) -->4704 <--
  227.  
  228. # 0087 (int)
  229. ft_printf("%#6o", 2500);
  230. 1. ( 2) -->6o<--
  231. 2. ( 6) --> 04704<--
  232.  
  233. # 0088 (int)
  234. ft_printf("%-#6o", 2500);
  235. 1. ( 3) -->#6o<--
  236. 2. ( 6) -->04704 <--
  237.  
  238. # 0089 (int)
  239. ft_printf("%-05o", 2500);
  240. 1. ( 3) -->05o<--
  241. 2. ( 5) -->4704 <--
  242.  
  243. # 0090 (int)
  244. ft_printf("%-5.10o", 2500);
  245. 1. ( 5) -->5.10o<--
  246. 2. ( 10) -->0000004704<--
  247.  
  248. # 0091 (int)
  249. ft_printf("%-10.5o", 2500);
  250. 1. ( 5) -->10.5o<--
  251. 2. ( 10) -->04704 <--
  252.  
  253. # 0093 (int)
  254. ft_printf("@moulitest: %.o %.0o", 0, 0);
  255. 1. ( 18) -->@moulitest: .o .0o<--
  256. 2. ( 13) -->@moulitest: <--
  257.  
  258. # 0094 (int)
  259. ft_printf("@moulitest: %5.o %5.0o", 0, 0);
  260. 1. ( 20) -->@moulitest: 5.o 5.0o<--
  261. 2. ( 23) -->@moulitest: <--
  262.  
  263. # 0095 (int)
  264. ft_printf("@moulitest: %#.o %#.0o", 0, 0);
  265. 1. ( 18) -->@moulitest: .o .0o<--
  266. 2. ( 15) -->@moulitest: 0 0<--
  267.  
  268. # 0096 (int)
  269. ft_printf("@moulitest: %.10o", 42);
  270. 1. ( 16) -->@moulitest: .10o<--
  271. 2. ( 22) -->@moulitest: 0000000052<--
  272.  
  273. # 0107 (int)
  274. ft_printf("% d", 42);
  275. 1. ( 1) -->d<--
  276. 2. ( 3) --> 42<--
  277.  
  278. # 0108 (int)
  279. ft_printf("% d", -42);
  280. 1. ( 1) -->d<--
  281. 2. ( 3) -->-42<--
  282.  
  283. # 0109 (int)
  284. ft_printf("%+d", 42);
  285. 1. ( 1) -->d<--
  286. 2. ( 3) -->+42<--
  287.  
  288. # 0110 (int)
  289. ft_printf("%+d", -42);
  290. 1. ( 1) -->d<--
  291. 2. ( 3) -->-42<--
  292.  
  293. # 0111 (int)
  294. ft_printf("%+d", 0);
  295. 1. ( 1) -->d<--
  296. 2. ( 2) -->+0<--
  297.  
  298. # 0112 (int)
  299. ft_printf("%+d", 4242424242424242424242);
  300. 1. ( 1) -->d<--
  301. 2. ( 2) -->-1<--
  302.  
  303. # 0113 (int)
  304. ft_printf("% +d", 42);
  305. 1. ( 2) -->+d<--
  306. 2. ( 3) -->+42<--
  307.  
  308. # 0114 (int)
  309. ft_printf("% +d", -42);
  310. 1. ( 2) -->+d<--
  311. 2. ( 3) -->-42<--
  312.  
  313. # 0115 (int)
  314. ft_printf("%+ d", 42);
  315. 1. ( 2) --> d<--
  316. 2. ( 3) -->+42<--
  317.  
  318. # 0116 (int)
  319. ft_printf("%+ d", -42);
  320. 1. ( 2) --> d<--
  321. 2. ( 3) -->-42<--
  322.  
  323. # 0117 (int)
  324. ft_printf("% +d", 42);
  325. 1. ( 3) --> +d<--
  326. 2. ( 3) -->+42<--
  327.  
  328. # 0118 (int)
  329. ft_printf("% +d", -42);
  330. 1. ( 3) --> +d<--
  331. 2. ( 3) -->-42<--
  332.  
  333. # 0119 (int)
  334. ft_printf("%+ d", 42);
  335. 1. ( 3) --> d<--
  336. 2. ( 3) -->+42<--
  337.  
  338. # 0120 (int)
  339. ft_printf("%+ d", -42);
  340. 1. ( 3) --> d<--
  341. 2. ( 3) -->-42<--
  342.  
  343. # 0121 (int)
  344. ft_printf("% ++d", 42);
  345. 1. ( 3) -->++d<--
  346. 2. ( 3) -->+42<--
  347.  
  348. # 0122 (int)
  349. ft_printf("% ++d", -42);
  350. 1. ( 3) -->++d<--
  351. 2. ( 3) -->-42<--
  352.  
  353. # 0123 (int)
  354. ft_printf("%++ d", 42);
  355. 1. ( 3) -->+ d<--
  356. 2. ( 3) -->+42<--
  357.  
  358. # 0124 (int)
  359. ft_printf("%++ d", -42);
  360. 1. ( 3) -->+ d<--
  361. 2. ( 3) -->-42<--
  362.  
  363. # 0125 (int)
  364. ft_printf("%0d", -42);
  365. 1. ( 1) -->d<--
  366. 2. ( 3) -->-42<--
  367.  
  368. # 0126 (int)
  369. ft_printf("%00d", -42);
  370. 1. ( 2) -->0d<--
  371. 2. ( 3) -->-42<--
  372.  
  373. # 0127 (int)
  374. ft_printf("%5d", 42);
  375. 1. ( 2) -->5d<--
  376. 2. ( 5) --> 42<--
  377.  
  378. # 0128 (int)
  379. ft_printf("%05d", 42);
  380. 1. ( 2) -->5d<--
  381. 2. ( 5) -->00042<--
  382.  
  383. # 0129 (int)
  384. ft_printf("%0+5d", 42);
  385. 1. ( 3) -->+5d<--
  386. 2. ( 5) -->+0042<--
  387.  
  388. # 0130 (int)
  389. ft_printf("%5d", -42);
  390. 1. ( 2) -->5d<--
  391. 2. ( 5) --> -42<--
  392.  
  393. # 0131 (int)
  394. ft_printf("%05d", -42);
  395. 1. ( 2) -->5d<--
  396. 2. ( 5) -->-0042<--
  397.  
  398. # 0132 (int)
  399. ft_printf("%0+5d", -42);
  400. 1. ( 3) -->+5d<--
  401. 2. ( 5) -->-0042<--
  402.  
  403. # 0133 (int)
  404. ft_printf("%-5d", 42);
  405. 1. ( 2) -->5d<--
  406. 2. ( 5) -->42 <--
  407.  
  408. # 0134 (int)
  409. ft_printf("%-05d", 42);
  410. 1. ( 3) -->05d<--
  411. 2. ( 5) -->42 <--
  412.  
  413. # 0135 (int)
  414. ft_printf("%-5d", -42);
  415. 1. ( 2) -->5d<--
  416. 2. ( 5) -->-42 <--
  417.  
  418. # 0136 (int)
  419. ft_printf("%-05d", -42);
  420. 1. ( 3) -->05d<--
  421. 2. ( 5) -->-42 <--
  422.  
  423. # 0162 (int)
  424. ft_printf("%4.15d", 42);
  425. 1. ( 5) -->4.15d<--
  426. 2. ( 15) -->000000000000042<--
  427.  
  428. # 0163 (int)
  429. ft_printf("%.2d", 4242);
  430. 1. ( 3) -->.2d<--
  431. 2. ( 4) -->4242<--
  432.  
  433. # 0164 (int)
  434. ft_printf("%.10d", 4242);
  435. 1. ( 4) -->.10d<--
  436. 2. ( 10) -->0000004242<--
  437.  
  438. # 0165 (int)
  439. ft_printf("%10.5d", 4242);
  440. 1. ( 5) -->10.5d<--
  441. 2. ( 10) --> 04242<--
  442.  
  443. # 0166 (int)
  444. ft_printf("%-10.5d", 4242);
  445. 1. ( 5) -->10.5d<--
  446. 2. ( 10) -->04242 <--
  447.  
  448. # 0167 (int)
  449. ft_printf("% 10.5d", 4242);
  450. 1. ( 5) -->10.5d<--
  451. 2. ( 10) --> 04242<--
  452.  
  453. # 0168 (int)
  454. ft_printf("%+10.5d", 4242);
  455. 1. ( 5) -->10.5d<--
  456. 2. ( 10) --> +04242<--
  457.  
  458. # 0169 (int)
  459. ft_printf("%-+10.5d", 4242);
  460. 1. ( 6) -->+10.5d<--
  461. 2. ( 10) -->+04242 <--
  462.  
  463. # 0170 (int)
  464. ft_printf("%03.2d", 0);
  465. 1. ( 4) -->3.2d<--
  466. 2. ( 3) --> 00<--
  467.  
  468. # 0171 (int)
  469. ft_printf("%03.2d", 1);
  470. 1. ( 4) -->3.2d<--
  471. 2. ( 3) --> 01<--
  472.  
  473. # 0172 (int)
  474. ft_printf("%03.2d", -1);
  475. 1. ( 4) -->3.2d<--
  476. 2. ( 3) -->-01<--
  477.  
  478. # 0173 (int)
  479. ft_printf("@moulitest: %.10d", -42);
  480. 1. ( 16) -->@moulitest: .10d<--
  481. 2. ( 23) -->@moulitest: -0000000042<--
  482.  
  483. # 0174 (int)
  484. ft_printf("@moulitest: %.d %.0d", 42, 43);
  485. 1. ( 18) -->@moulitest: .d .0d<--
  486. 2. ( 17) -->@moulitest: 42 43<--
  487.  
  488. # 0175 (int)
  489. ft_printf("@moulitest: %.d %.0d", 0, 0);
  490. 1. ( 18) -->@moulitest: .d .0d<--
  491. 2. ( 13) -->@moulitest: <--
  492.  
  493. # 0176 (int)
  494. ft_printf("@moulitest: %5.d %5.0d", 0, 0);
  495. 1. ( 20) -->@moulitest: 5.d 5.0d<--
  496. 2. ( 23) -->@moulitest: <--
  497.  
  498. # 0182 (unsigned int)
  499. ft_printf("%5u", "4294967295");
  500. 1. ( 2) -->5u<--
  501. 2. ( 10) -->4294967295<--
  502.  
  503. # 0183 (unsigned int)
  504. ft_printf("%15u", "4294967295");
  505. 1. ( 3) -->15u<--
  506. 2. ( 15) --> 4294967295<--
  507.  
  508. # 0184 (unsigned int)
  509. ft_printf("%-15u", "4294967295");
  510. 1. ( 3) -->15u<--
  511. 2. ( 15) -->4294967295 <--
  512.  
  513. # 0185 (unsigned int)
  514. ft_printf("%015u", "4294967295");
  515. 1. ( 3) -->15u<--
  516. 2. ( 15) -->000004294967295<--
  517.  
  518. # 0186 (unsigned int)
  519. ft_printf("% u", "4294967295");
  520. 1. ( 1) -->u<--
  521. 2. ( 10) -->4294967295<--
  522.  
  523. # 0187 (unsigned int)
  524. ft_printf("%+u", "4294967295");
  525. 1. ( 1) -->u<--
  526. 2. ( 10) -->4294967295<--
  527.  
  528. # 0194 (unsigned long)
  529. ft_printf("%U", "4294967295");
  530. 1. ( 0) --><--
  531. 2. ( 10) -->4294967295<--
  532.  
  533. # 0195 (unsigned long)
  534. ft_printf("%hU", "4294967296");
  535. 1. ( 0) --><--
  536. 2. ( 10) -->4294967296<--
  537.  
  538. # 0196 (unsigned long)
  539. ft_printf("%U", "4294967296");
  540. 1. ( 0) --><--
  541. 2. ( 10) -->4294967296<--
  542.  
  543. # 0197 (unsigned int)
  544. ft_printf("@moulitest: %.5u", "42");
  545. 1. ( 15) -->@moulitest: .5u<--
  546. 2. ( 17) -->@moulitest: 00042<--
  547.  
  548. --------------
  549.  
  550. SUCCESS TESTS:
  551.  
  552. 1. ft_printf(""); -> ""
  553. 2. ft_printf("\n"); -> "\n"
  554. 3. ft_printf("test"); -> "test"
  555. 4. ft_printf("test\n"); -> "test\n"
  556. 5. ft_printf("1234"); -> "1234"
  557. 6. ft_printf("%%"); -> "%"
  558. 7. FAIL ft_printf("%5%"); -> " %"
  559. 8. FAIL ft_printf("%-5%"); -> "% "
  560. 9. FAIL ft_printf("%.0%"); -> "%"
  561. 10. ft_printf("%%", "test"); -> "%"
  562. 11. FAIL ft_printf("% %", "test"); -> "%"
  563. 12. ft_printf("%x", 42); -> "2a"
  564. 13. ft_printf("%X", 42); -> "2A"
  565. 14. ft_printf("%x", 0); -> "0"
  566. 15. ft_printf("%X", 0); -> "0"
  567. 16. ft_printf("%x", -42); -> "ffffffd6"
  568. 17. ft_printf("%X", -42); -> "FFFFFFD6"
  569. 18. ft_printf("%x", 4294967296); -> "0"
  570. 19. ft_printf("%X", 4294967296); -> "0"
  571. 20. ft_printf("%x", test); -> "0"
  572. 21. FAIL ft_printf("%10x", 42); -> " 2a"
  573. 22. FAIL ft_printf("%-10x", 42); -> "2a "
  574. 23. ft_printf("%lx", 4294967296); -> "100000000"
  575. 24. ft_printf("%llX", 4294967296); -> "100000000"
  576. 25. ft_printf("%hx", 4294967296); -> "0"
  577. 26. ft_printf("%hhX", 4294967296); -> "0"
  578. 27. ft_printf("%jx", 4294967295); -> "ffffffff"
  579. 28. ft_printf("%jx", 4294967296); -> "100000000"
  580. 29. ft_printf("%jx", -4294967296); -> "ffffffff00000000"
  581. 30. ft_printf("%jx", -4294967297); -> "fffffffeffffffff"
  582. 31. ft_printf("%llx", 9223372036854775807); -> "7fffffffffffffff"
  583. 32. ft_printf("%llx", 9223372036854775808); -> "7fffffffffffffff"
  584. 33. FAIL ft_printf("%010x", 542); -> "000000021e"
  585. 34. FAIL ft_printf("%-15x", 542); -> "21e "
  586. 35. FAIL ft_printf("%2x", 542); -> "21e"
  587. 36. FAIL ft_printf("%.2x", 5427); -> "1533"
  588. 37. FAIL ft_printf("%5.2x", 5427); -> " 1533"
  589. 38. FAIL ft_printf("%#x", 42); -> "0x2a"
  590. 39. FAIL ft_printf("%#llx", 9223372036854775807); -> "0x7fffffffffffffff"
  591. 40. FAIL ft_printf("%#x", 0); -> "0"
  592. 41. FAIL ft_printf("%#x", 42); -> "0x2a"
  593. 42. FAIL ft_printf("%#X", 42); -> "0X2A"
  594. 43. FAIL ft_printf("%#8x", 42); -> " 0x2a"
  595. 44. FAIL ft_printf("%#08x", 42); -> "0x00002a"
  596. 45. FAIL ft_printf("%#-08x", 42); -> "0x2a "
  597. 46. FAIL ft_printf("@moulitest: %#.x %#.0x", 0, 0); -> "@moulitest: "
  598. 47. FAIL ft_printf("@moulitest: %.x %.0x", 0, 0); -> "@moulitest: "
  599. 48. FAIL ft_printf("@moulitest: %5.x %5.0x", 0, 0); -> "@moulitest: "
  600. 49. ft_printf("%s", "abc"); -> "abc"
  601. 50. ft_printf("%s", "this is a string"); -> "this is a string"
  602. 51. ft_printf("%s ", "this is a string"); -> "this is a string "
  603. 52. ft_printf("%s ", "this is a string"); -> "this is a string "
  604. 53. ft_printf("this is a %s", "string"); -> "this is a string"
  605. 54. ft_printf("%s is a string", "this"); -> "this is a string"
  606. 55. ft_printf("Line Feed %s", "\n"); -> "Line Feed \n"
  607. 56. FAIL ft_printf("%10s is a string", "this"); -> " this is a string"
  608. 57. FAIL ft_printf("%.2s is a string", "this"); -> "th is a string"
  609. 58. FAIL ft_printf("%5.2s is a string", "this"); -> " th is a string"
  610. 59. FAIL ft_printf("%10s is a string", ""); -> " is a string"
  611. 60. FAIL ft_printf("%.2s is a string", ""); -> " is a string"
  612. 61. FAIL ft_printf("%5.2s is a string", ""); -> " is a string"
  613. 62. FAIL ft_printf("%-10s is a string", "this"); -> "this is a string"
  614. 63. FAIL ft_printf("%-.2s is a string", "this"); -> "th is a string"
  615. 64. FAIL ft_printf("%-5.2s is a string", "this"); -> "th is a string"
  616. 65. FAIL ft_printf("%-10s is a string", ""); -> " is a string"
  617. 66. FAIL ft_printf("%-.2s is a string", ""); -> " is a string"
  618. 67. FAIL ft_printf("%-5.2s is a string", ""); -> " is a string"
  619. 68. ft_printf("%s %s", "this", "is"); -> "this is"
  620. 69. ft_printf("%s %s %s", "this", "is", "a"); -> "this is a"
  621. 70. ft_printf("%s %s %s %s", "this", "is", "a", "multi"); -> "this is a multi"
  622. 71. ft_printf("%s %s %s %s string. gg!", "this", "is", "a", "multi", "string"); -> "this is a multi string. gg!"
  623. 72. ft_printf("%s%s%s%s%s", "this", "is", "a", "multi", "string"); -> "thisisamultistring"
  624. 73. FAIL ft_printf("@moulitest: %s", NULL); -> "@moulitest: (null)@moulitest: "
  625. 74. FAIL ft_printf("%.2c", NULL); -> ""
  626. 75. ft_printf("%s %s", NULL, string); -> " string"
  627. 76. ft_printf("%c", 42); -> "*"
  628. 77. FAIL ft_printf("%5c", 42); -> " *"
  629. 78. FAIL ft_printf("%-5c", 42); -> "* "
  630. 79. ft_printf("@moulitest: %c", 0); -> "@moulitest: "
  631. 80. FAIL ft_printf("%2c", 0); -> " "
  632. 81. ft_printf("null %c and text", 0); -> "null and text"
  633. 82. FAIL ft_printf("% c", 0); -> ""
  634. 83. ft_printf("%o", 40); -> "50"
  635. 84. FAIL ft_printf("%5o", 41); -> " 51"
  636. 85. FAIL ft_printf("%05o", 42); -> "00052"
  637. 86. FAIL ft_printf("%-5o", 2500); -> "4704 "
  638. 87. FAIL ft_printf("%#6o", 2500); -> " 04704"
  639. 88. FAIL ft_printf("%-#6o", 2500); -> "04704 "
  640. 89. FAIL ft_printf("%-05o", 2500); -> "4704 "
  641. 90. FAIL ft_printf("%-5.10o", 2500); -> "0000004704"
  642. 91. FAIL ft_printf("%-10.5o", 2500); -> "04704 "
  643. 92. ft_printf("@moulitest: %o", 0); -> "@moulitest: 0"
  644. 93. FAIL ft_printf("@moulitest: %.o %.0o", 0, 0); -> "@moulitest: "
  645. 94. FAIL ft_printf("@moulitest: %5.o %5.0o", 0, 0); -> "@moulitest: "
  646. 95. FAIL ft_printf("@moulitest: %#.o %#.0o", 0, 0); -> "@moulitest: 0 0"
  647. 96. FAIL ft_printf("@moulitest: %.10o", 42); -> "@moulitest: 0000000052"
  648. 97. ft_printf("%d", 1); -> "1"
  649. 98. ft_printf("the %d", 1); -> "the 1"
  650. 99. ft_printf("%d is one", 1); -> "1 is one"
  651. 100. ft_printf("%d", -1); -> "-1"
  652. 101. ft_printf("%d", 4242); -> "4242"
  653. 102. ft_printf("%d", -4242); -> "-4242"
  654. 103. ft_printf("%d", 2147483647); -> "2147483647"
  655. 104. ft_printf("%d", 2147483648); -> "-2147483648"
  656. 105. ft_printf("%d",2147483648); -> "0"
  657. 106. ft_printf("%d",2147483649); -> "0"
  658. 107. FAIL ft_printf("% d", 42); -> " 42"
  659. 108. FAIL ft_printf("% d", -42); -> "-42"
  660. 109. FAIL ft_printf("%+d", 42); -> "+42"
  661. 110. FAIL ft_printf("%+d", -42); -> "-42"
  662. 111. FAIL ft_printf("%+d", 0); -> "+0"
  663. 112. FAIL ft_printf("%+d", 4242424242424242424242); -> "-1"
  664. 113. FAIL ft_printf("% +d", 42); -> "+42"
  665. 114. FAIL ft_printf("% +d", -42); -> "-42"
  666. 115. FAIL ft_printf("%+ d", 42); -> "+42"
  667. 116. FAIL ft_printf("%+ d", -42); -> "-42"
  668. 117. FAIL ft_printf("% +d", 42); -> "+42"
  669. 118. FAIL ft_printf("% +d", -42); -> "-42"
  670. 119. FAIL ft_printf("%+ d", 42); -> "+42"
  671. 120. FAIL ft_printf("%+ d", -42); -> "-42"
  672. 121. FAIL ft_printf("% ++d", 42); -> "+42"
  673. 122. FAIL ft_printf("% ++d", -42); -> "-42"
  674. 123. FAIL ft_printf("%++ d", 42); -> "+42"
  675. 124. FAIL ft_printf("%++ d", -42); -> "-42"
  676. 125. FAIL ft_printf("%0d", -42); -> "-42"
  677. 126. FAIL ft_printf("%00d", -42); -> "-42"
  678. 127. FAIL ft_printf("%5d", 42); -> " 42"
  679. 128. FAIL ft_printf("%05d", 42); -> "00042"
  680. 129. FAIL ft_printf("%0+5d", 42); -> "+0042"
  681. 130. FAIL ft_printf("%5d", -42); -> " -42"
  682. 131. FAIL ft_printf("%05d", -42); -> "-0042"
  683. 132. FAIL ft_printf("%0+5d", -42); -> "-0042"
  684. 133. FAIL ft_printf("%-5d", 42); -> "42 "
  685. 134. FAIL ft_printf("%-05d", 42); -> "42 "
  686. 135. FAIL ft_printf("%-5d", -42); -> "-42 "
  687. 136. FAIL ft_printf("%-05d", -42); -> "-42 "
  688. 137. ft_printf("%hd", 32767); -> "32767"
  689. 138. ft_printf("%hd",32768); -> "0"
  690. 139. ft_printf("%hd", 32768); -> "-32768"
  691. 140. ft_printf("%hd",32769); -> "0"
  692. 141. ft_printf("%hhd", 127); -> "127"
  693. 142. ft_printf("%hhd", 128); -> "-128"
  694. 143. ft_printf("%hhd", -128); -> "-128"
  695. 144. ft_printf("%hhd", -129); -> "127"
  696. 145. ft_printf("%ld", 2147483647); -> "2147483647"
  697. 146. ft_printf("%ld",2147483648); -> "0"
  698. 147. ft_printf("%ld", 2147483648); -> "2147483648"
  699. 148. ft_printf("%ld",2147483649); -> "0"
  700. 149. ft_printf("%lld", 9223372036854775807); -> "9223372036854775807"
  701. 150. ft_printf("%lld", -9223372036854775808); -> "-9223372036854775808"
  702. 151. ft_printf("%jd", 9223372036854775807); -> "9223372036854775807"
  703. 152. ft_printf("%jd",9223372036854775808); -> "0"
  704. 153. ft_printf("%zd", 4294967295); -> "4294967295"
  705. 154. ft_printf("%zd", 4294967296); -> "4294967296"
  706. 155. ft_printf("%zd",0); -> "0"
  707. 156. ft_printf("%zd",1); -> "0"
  708. 157. ft_printf("%d", 1); -> "1"
  709. 158. ft_printf("%d %d", 1, -2); -> "1 -2"
  710. 159. ft_printf("%d %d %d", 1, -2, 33); -> "1 -2 33"
  711. 160. ft_printf("%d %d %d %d", 1, -2, 33, 42); -> "1 -2 33 42"
  712. 161. ft_printf("%d %d %d %d gg!", 1, -2, 33, 42, 0); -> "1 -2 33 42 gg!"
  713. 162. FAIL ft_printf("%4.15d", 42); -> "000000000000042"
  714. 163. FAIL ft_printf("%.2d", 4242); -> "4242"
  715. 164. FAIL ft_printf("%.10d", 4242); -> "0000004242"
  716. 165. FAIL ft_printf("%10.5d", 4242); -> " 04242"
  717. 166. FAIL ft_printf("%-10.5d", 4242); -> "04242 "
  718. 167. FAIL ft_printf("% 10.5d", 4242); -> " 04242"
  719. 168. FAIL ft_printf("%+10.5d", 4242); -> " +04242"
  720. 169. FAIL ft_printf("%-+10.5d", 4242); -> "+04242 "
  721. 170. FAIL ft_printf("%03.2d", 0); -> " 00"
  722. 171. FAIL ft_printf("%03.2d", 1); -> " 01"
  723. 172. FAIL ft_printf("%03.2d", -1); -> "-01"
  724. 173. FAIL ft_printf("@moulitest: %.10d", -42); -> "@moulitest: -0000000042"
  725. 174. FAIL ft_printf("@moulitest: %.d %.0d", 42, 43); -> "@moulitest: 42 43"
  726. 175. FAIL ft_printf("@moulitest: %.d %.0d", 0, 0); -> "@moulitest: "
  727. 176. FAIL ft_printf("@moulitest: %5.d %5.0d", 0, 0); -> "@moulitest: "
  728. 177. ft_printf("%u", "0"); -> "0"
  729. 178. ft_printf("%u", "1"); -> "1"
  730. 179. ft_printf("%u", "-1"); -> "4294967295"
  731. 180. ft_printf("%u", "4294967295"); -> "4294967295"
  732. 181. ft_printf("%u", "4294967296"); -> "0"
  733. 182. FAIL ft_printf("%5u", "4294967295"); -> "4294967295"
  734. 183. FAIL ft_printf("%15u", "4294967295"); -> " 4294967295"
  735. 184. FAIL ft_printf("%-15u", "4294967295"); -> "4294967295 "
  736. 185. FAIL ft_printf("%015u", "4294967295"); -> "000004294967295"
  737. 186. FAIL ft_printf("% u", "4294967295"); -> "4294967295"
  738. 187. FAIL ft_printf("%+u", "4294967295"); -> "4294967295"
  739. 188. ft_printf("%lu", "4294967295"); -> "4294967295"
  740. 189. ft_printf("%lu", "4294967296"); -> "4294967296"
  741. 190. ft_printf("%lu", "-42"); -> "18446744073709551574"
  742. 191. ft_printf("%llu", "4999999999"); -> "4999999999"
  743. 192. ft_printf("%ju", "4999999999"); -> "4999999999"
  744. 193. ft_printf("%ju", "4294967296"); -> "4294967296"
  745. 194. FAIL ft_printf("%U", "4294967295"); -> "4294967295"
  746. 195. FAIL ft_printf("%hU", "4294967296"); -> "4294967296"
  747. 196. FAIL ft_printf("%U", "4294967296"); -> "4294967296"
  748. 197. FAIL ft_printf("@moulitest: %.5u", "42"); -> "@moulitest: 00042"
  749.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
 rm -rf ft_printf.o
    ^
prog.c:7:3: error: invalid preprocessing directive #TEST
 # TEST NUMBER (TYPE OF ARG)
   ^
prog.c:9:3: error: expected identifier or '(' before numeric constant
   1. your function ft_printf
   ^
prog.c:8:3: error: expected identifier or '(' before numeric constant
   INSTRUCTION();
   ^
prog.c:9:3: error: expected identifier or '(' before numeric constant
   1. your function ft_printf
   ^
prog.c:10:3: error: expected identifier or '(' before numeric constant
   2. unix function printf
   ^
prog.c:13:8: error: "(" is not a valid filename
prog.c:15:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->5<--
   ^
prog.c:18:8: error: "(" is not a valid filename
prog.c:20:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->5<--
   ^
prog.c:20:17: error: invalid suffix "x" on integer constant
   1. (    1) -->5<--
                 ^
prog.c:21:25: error: invalid suffix "a" on integer constant
prog.c:23:8: error: "(" is not a valid filename
prog.c:25:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->.0<--
   ^
prog.c:25:17: error: invalid suffix "x" on integer constant
   1. (    2) -->.0<--
                 ^
prog.c:26:17: error: invalid suffix "a" on integer constant
   2. (    1) -->%<--
                 ^
prog.c:28:8: error: "(" is not a valid filename
 # 0011 (char *)
        ^
prog.c:30:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->  <--
   ^
prog.c:30:17: error: invalid suffix "x" on integer constant
   1. (    2) -->  <--
                 ^
prog.c:31:17: error: exponent has no digits
   2. (    1) -->%<--
                 ^
prog.c:33:8: error: "(" is not a valid filename
 # 0021 (int)
        ^
prog.c:35:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->10x<--
   ^
prog.c:35:17: error: invalid suffix "x" on integer constant
   1. (    3) -->10x<--
                 ^
prog.c:36:17: error: exponent has no digits
   2. (   10) -->        2a<--
                 ^
prog.c:38:8: error: "(" is not a valid filename
 # 0022 (int)
        ^
prog.c:40:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->10x<--
   ^
prog.c:40:17: error: invalid suffix "x" on integer constant
   1. (    3) -->10x<--
                 ^
prog.c:41:17: error: exponent has no digits
   2. (   10) -->2a        <--
                 ^
prog.c:43:8: error: "(" is not a valid filename
 # 0033 (int)
        ^
prog.c:45:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->10x<--
   ^
prog.c:45:17: error: invalid suffix "x" on floating constant
   1. (    3) -->10x<--
                 ^
prog.c:48:8: error: "(" is not a valid filename
 # 0034 (int)
        ^
prog.c:50:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->15x<--
   ^
prog.c:50:17: error: invalid suffix "x" on floating constant
   1. (    3) -->15x<--
                 ^
prog.c:53:8: error: "(" is not a valid filename
 # 0035 (int)
        ^
prog.c:55:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->2x<--
   ^
prog.c:58:8: error: "(" is not a valid filename
 # 0036 (int)
        ^
prog.c:60:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->.2x<--
   ^
prog.c:63:8: error: "(" is not a valid filename
 # 0037 (int)
        ^
prog.c:65:3: error: expected identifier or '(' before numeric constant
   1. (    4) -->5.2x<--
   ^
prog.c:68:8: error: "(" is not a valid filename
 # 0038 (int)
        ^
prog.c:70:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->x<--
   ^
prog.c:73:8: error: "(" is not a valid filename
 # 0039 (int)
        ^
prog.c:75:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->llx<--
   ^
prog.c:78:8: error: "(" is not a valid filename
 # 0040 (int)
        ^
prog.c:80:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->x<--
   ^
prog.c:80:17: error: invalid suffix "x" on integer constant
   1. (    1) -->x<--
                 ^
prog.c:83:8: error: "(" is not a valid filename
 # 0041 (int)
        ^
prog.c:85:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->x<--
   ^
prog.c:85:17: error: invalid digit "8" in octal constant
   1. (    1) -->x<--
                 ^
prog.c:88:8: error: "(" is not a valid filename
 # 0042 (int)
        ^
prog.c:90:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->X<--
   ^
prog.c:90:18: error: invalid digit "8" in octal constant
   1. (    1) -->X<--
                  ^
prog.c:93:8: error: "(" is not a valid filename
 # 0043 (int)
        ^
prog.c:95:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->8x<--
   ^
prog.c:95:17: error: stray '@' in program
   1. (    2) -->8x<--
                 ^
prog.c:95:32: error: invalid suffix "x" on floating constant
prog.c:96:17: error: stray '@' in program
   2. (    8) -->    0x2a<--
                 ^
prog.c:98:8: error: "(" is not a valid filename
 # 0044 (int)
        ^
prog.c:100:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->08x<--
   ^
prog.c:100:17: error: stray '@' in program
   1. (    3) -->08x<--
                 ^
prog.c:100:32: error: invalid suffix "x" on floating constant
prog.c:101:17: error: stray '@' in program
   2. (    8) -->0x00002a<--
                 ^
prog.c:103:8: error: "(" is not a valid filename
 # 0045 (int)
        ^
prog.c:105:3: error: expected identifier or '(' before numeric constant
   1. (    4) -->-08x<--
   ^
prog.c:105:17: error: stray '@' in program
   1. (    4) -->-08x<--
                 ^
prog.c:105:29: error: invalid suffix "x" on floating constant
prog.c:105:33: error: invalid suffix "x" on floating constant
prog.c:106:17: error: stray '@' in program
   2. (    8) -->0x2a    <--
                 ^
prog.c:108:8: error: "(" is not a valid filename
 # 0046 (int)
        ^
prog.c:110:3: error: expected identifier or '(' before numeric constant
   1. (   18) -->@moulitest: .x .0x<--
   ^
prog.c:110:17: error: invalid suffix "s" on integer constant
   1. (   18) -->@moulitest: .x .0x<--
                 ^
prog.c:113:8: error: "(" is not a valid filename
 # 0047 (int)
        ^
prog.c:115:3: error: expected identifier or '(' before numeric constant
   1. (   18) -->@moulitest: .x .0x<--
   ^
prog.c:115:17: error: invalid suffix "s" on floating constant
   1. (   18) -->@moulitest: .x .0x<--
                 ^
prog.c:118:8: error: "(" is not a valid filename
 # 0048 (int)
        ^
prog.c:120:3: error: expected identifier or '(' before numeric constant
   1. (   20) -->@moulitest: 5.x 5.0x<--
   ^
prog.c:120:17: error: invalid suffix "s" on floating constant
   1. (   20) -->@moulitest: 5.x 5.0x<--
                 ^
prog.c:123:8: error: "(" is not a valid filename
 # 0056 (char *)
        ^
prog.c:125:3: error: expected identifier or '(' before numeric constant
   1. (   15) -->10s is a string<--
   ^
prog.c:125:17: error: invalid suffix "s" on integer constant
   1. (   15) -->10s is a string<--
                 ^
prog.c:128:8: error: "(" is not a valid filename
 # 0057 (char *)
        ^
prog.c:130:3: error: expected identifier or '(' before numeric constant
   1. (   15) -->.2s is a string<--
   ^
prog.c:130:17: error: invalid suffix "s" on floating constant
   1. (   15) -->.2s is a string<--
                 ^
prog.c:133:8: error: "(" is not a valid filename
 # 0058 (char *)
        ^
prog.c:135:3: error: expected identifier or '(' before numeric constant
   1. (   16) -->5.2s is a string<--
   ^
prog.c:135:17: error: invalid suffix "s" on floating constant
   1. (   16) -->5.2s is a string<--
                 ^
prog.c:138:8: error: "(" is not a valid filename
 # 0059 (char *)
        ^
prog.c:140:3: error: expected identifier or '(' before numeric constant
   1. (   15) -->10s is a string<--
   ^
prog.c:140:17: error: invalid suffix "s" on integer constant
   1. (   15) -->10s is a string<--
                 ^
prog.c:143:8: error: "(" is not a valid filename
 # 0060 (char *)
        ^
prog.c:145:3: error: expected identifier or '(' before numeric constant
   1. (   15) -->.2s is a string<--
   ^
prog.c:145:17: error: invalid suffix "s" on floating constant
   1. (   15) -->.2s is a string<--
                 ^
prog.c:148:8: error: "(" is not a valid filename
 # 0061 (char *)
        ^
prog.c:150:3: error: expected identifier or '(' before numeric constant
   1. (   16) -->5.2s is a string<--
   ^
prog.c:150:17: error: invalid suffix "s" on floating constant
   1. (   16) -->5.2s is a string<--
                 ^
prog.c:153:8: error: "(" is not a valid filename
 # 0062 (char *)
        ^
prog.c:155:3: error: expected identifier or '(' before numeric constant
   1. (   15) -->10s is a string<--
   ^
prog.c:155:17: error: invalid suffix "s" on integer constant
   1. (   15) -->10s is a string<--
                 ^
prog.c:158:8: error: "(" is not a valid filename
 # 0063 (char *)
        ^
prog.c:160:3: error: expected identifier or '(' before numeric constant
   1. (   15) -->.2s is a string<--
   ^
prog.c:160:17: error: invalid suffix "s" on floating constant
   1. (   15) -->.2s is a string<--
                 ^
prog.c:163:8: error: "(" is not a valid filename
 # 0064 (char *)
        ^
prog.c:165:3: error: expected identifier or '(' before numeric constant
   1. (   16) -->5.2s is a string<--
   ^
prog.c:165:17: error: invalid suffix "s" on floating constant
   1. (   16) -->5.2s is a string<--
                 ^
prog.c:168:8: error: "(" is not a valid filename
 # 0065 (char *)
        ^
prog.c:170:3: error: expected identifier or '(' before numeric constant
   1. (   15) -->10s is a string<--
   ^
prog.c:170:17: error: stray '@' in program
   1. (   15) -->10s is a string<--
                 ^
prog.c:170:35: error: stray '@' in program
prog.c:171:17: error: stray '@' in program
   2. (   22) -->           is a string<--
                 ^
prog.c:171:35: error: stray '@' in program
   2. (   22) -->           is a string<--
                                   ^
prog.c:173:8: error: "(" is not a valid filename
 # 0066 (char *)
        ^
prog.c:175:3: error: expected identifier or '(' before numeric constant
   1. (   15) -->.2s is a string<--
   ^
prog.c:175:17: error: invalid suffix "c" on floating constant
   1. (   15) -->.2s is a string<--
                 ^
prog.c:178:8: error: "(" is not a valid filename
 # 0067 (char *)
        ^
prog.c:180:3: error: expected identifier or '(' before numeric constant
   1. (   16) -->5.2s is a string<--
   ^
prog.c:180:17: error: invalid suffix "c" on integer constant
   1. (   16) -->5.2s is a string<--
                 ^
prog.c:183:8: error: "(" is not a valid filename
 # 0073 (NULL)
        ^
prog.c:185:3: error: expected identifier or '(' before numeric constant
   1. (   34) -->@moulitest: (null)@moulitest: NULL<--
   ^
prog.c:185:17: error: invalid suffix "c" on integer constant
   1. (   34) -->@moulitest: (null)@moulitest: NULL<--
                 ^
prog.c:188:8: error: "(" is not a valid filename
 # 0074 (NULL)
        ^
prog.c:190:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->.2c<--
   ^
prog.c:190:17: error: invalid suffix "c" on integer constant
   1. (    3) -->.2c<--
                 ^
prog.c:193:8: error: "(" is not a valid filename
 # 0077 (char)
        ^
prog.c:195:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5c<--
   ^
prog.c:198:8: error: "(" is not a valid filename
 # 0078 (char)
        ^
prog.c:200:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5c<--
   ^
prog.c:200:17: error: invalid suffix "o" on integer constant
   1. (    2) -->5c<--
                 ^
prog.c:203:8: error: "(" is not a valid filename
 # 0080 (char)
        ^
prog.c:205:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->2c<--
   ^
prog.c:205:17: error: invalid suffix "o" on integer constant
   1. (    2) -->2c<--
                 ^
prog.c:208:8: error: "(" is not a valid filename
 # 0082 (char)
        ^
prog.c:210:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->c<--
   ^
prog.c:210:17: error: invalid suffix "o" on integer constant
   1. (    1) -->c<--
                 ^
prog.c:213:8: error: "(" is not a valid filename
 # 0084 (int)
        ^
prog.c:215:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5o<--
   ^
prog.c:215:17: error: invalid suffix "o" on integer constant
   1. (    2) -->5o<--
                 ^
prog.c:218:8: error: "(" is not a valid filename
 # 0085 (int)
        ^
prog.c:220:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5o<--
   ^
prog.c:220:17: error: stray '#' in program
   1. (    2) -->5o<--
                 ^
prog.c:220:18: error: invalid suffix "o" on integer constant
   1. (    2) -->5o<--
                  ^
prog.c:223:8: error: "(" is not a valid filename
 # 0086 (int)
        ^
prog.c:225:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5o<--
   ^
prog.c:225:17: error: invalid suffix "o" on integer constant
   1. (    2) -->5o<--
                 ^
prog.c:228:8: error: "(" is not a valid filename
 # 0087 (int)
        ^
prog.c:230:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->6o<--
   ^
prog.c:230:17: error: invalid suffix "o" on floating constant
   1. (    2) -->6o<--
                 ^
prog.c:233:8: error: "(" is not a valid filename
 # 0088 (int)
        ^
prog.c:235:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->#6o<--
   ^
prog.c:235:17: error: invalid suffix "o" on floating constant
   1. (    3) -->#6o<--
                 ^
prog.c:238:8: error: "(" is not a valid filename
 # 0089 (int)
        ^
prog.c:240:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->05o<--
   ^
prog.c:240:17: error: stray '@' in program
   1. (    3) -->05o<--
                 ^
prog.c:240:32: error: invalid suffix "o" on floating constant
prog.c:241:17: error: stray '@' in program
   2. (    5) -->4704 <--
                 ^
prog.c:243:8: error: "(" is not a valid filename
 # 0090 (int)
        ^
prog.c:245:3: error: expected identifier or '(' before numeric constant
   1. (    5) -->5.10o<--
   ^
prog.c:245:17: error: stray '@' in program
   1. (    5) -->5.10o<--
                 ^
prog.c:245:29: error: invalid suffix "o" on floating constant
prog.c:245:33: error: invalid suffix "o" on floating constant
prog.c:246:17: error: stray '@' in program
   2. (   10) -->0000004704<--
                 ^
prog.c:248:8: error: "(" is not a valid filename
 # 0091 (int)
        ^
prog.c:250:3: error: expected identifier or '(' before numeric constant
   1. (    5) -->10.5o<--
   ^
prog.c:250:17: error: stray '@' in program
   1. (    5) -->10.5o<--
                 ^
prog.c:250:32: error: invalid suffix "o" on floating constant
prog.c:251:17: error: stray '@' in program
   2. (   10) -->04704     <--
                 ^
prog.c:253:8: error: "(" is not a valid filename
 # 0093 (int)
        ^
prog.c:255:3: error: expected identifier or '(' before numeric constant
   1. (   18) -->@moulitest: .o .0o<--
   ^
prog.c:255:17: error: stray '@' in program
   1. (   18) -->@moulitest: .o .0o<--
                 ^
prog.c:255:29: error: invalid suffix "o" on floating constant
   1. (   18) -->@moulitest: .o .0o<--
                             ^
prog.c:256:17: error: stray '@' in program
   2. (   13) -->@moulitest:  <--
                 ^
prog.c:258:8: error: "(" is not a valid filename
 # 0094 (int)
        ^
prog.c:260:3: error: expected identifier or '(' before numeric constant
   1. (   20) -->@moulitest: 5.o 5.0o<--
   ^
prog.c:263:8: error: "(" is not a valid filename
 # 0095 (int)
        ^
prog.c:265:3: error: expected identifier or '(' before numeric constant
   1. (   18) -->@moulitest: .o .0o<--
   ^
prog.c:268:8: error: "(" is not a valid filename
 # 0096 (int)
        ^
prog.c:270:3: error: expected identifier or '(' before numeric constant
   1. (   16) -->@moulitest: .10o<--
   ^
prog.c:273:8: error: "(" is not a valid filename
 # 0107 (int)
        ^
prog.c:275:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->d<--
   ^
prog.c:278:8: error: "(" is not a valid filename
 # 0108 (int)
        ^
prog.c:280:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->d<--
   ^
prog.c:283:8: error: "(" is not a valid filename
 # 0109 (int)
        ^
prog.c:284:20: warning: integer constant is too large for its type
   ft_printf("%+d", 42);
                    ^
prog.c:285:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->d<--
   ^
prog.c:288:8: error: "(" is not a valid filename
 # 0110 (int)
        ^
prog.c:290:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->d<--
   ^
prog.c:293:8: error: "(" is not a valid filename
 # 0111 (int)
        ^
prog.c:295:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->d<--
   ^
prog.c:298:8: error: "(" is not a valid filename
 # 0112 (int)
        ^
prog.c:300:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->d<--
   ^
prog.c:303:8: error: "(" is not a valid filename
 # 0113 (int)
        ^
prog.c:305:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->+d<--
   ^
prog.c:308:8: error: "(" is not a valid filename
 # 0114 (int)
        ^
prog.c:310:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->+d<--
   ^
prog.c:313:8: error: "(" is not a valid filename
 # 0115 (int)
        ^
prog.c:315:3: error: expected identifier or '(' before numeric constant
   1. (    2) --> d<--
   ^
prog.c:318:8: error: "(" is not a valid filename
 # 0116 (int)
        ^
prog.c:320:3: error: expected identifier or '(' before numeric constant
   1. (    2) --> d<--
   ^
prog.c:323:8: error: "(" is not a valid filename
 # 0117 (int)
        ^
prog.c:325:3: error: expected identifier or '(' before numeric constant
   1. (    3) --> +d<--
   ^
prog.c:328:8: error: "(" is not a valid filename
 # 0118 (int)
        ^
prog.c:330:3: error: expected identifier or '(' before numeric constant
   1. (    3) --> +d<--
   ^
prog.c:333:8: error: "(" is not a valid filename
 # 0119 (int)
        ^
prog.c:335:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->  d<--
   ^
prog.c:338:8: error: "(" is not a valid filename
 # 0120 (int)
        ^
prog.c:340:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->  d<--
   ^
prog.c:343:8: error: "(" is not a valid filename
 # 0121 (int)
        ^
prog.c:345:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->++d<--
   ^
prog.c:348:8: error: "(" is not a valid filename
 # 0122 (int)
        ^
prog.c:350:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->++d<--
   ^
prog.c:353:8: error: "(" is not a valid filename
 # 0123 (int)
        ^
prog.c:355:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->+ d<--
   ^
prog.c:355:17: error: invalid suffix "d" on integer constant
   1. (    3) -->+ d<--
                 ^
prog.c:358:8: error: "(" is not a valid filename
 # 0124 (int)
        ^
prog.c:360:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->+ d<--
   ^
prog.c:360:17: error: invalid suffix "d" on integer constant
   1. (    3) -->+ d<--
                 ^
prog.c:363:8: error: "(" is not a valid filename
 # 0125 (int)
        ^
prog.c:365:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->d<--
   ^
prog.c:365:17: error: invalid suffix "d" on integer constant
   1. (    1) -->d<--
                 ^
prog.c:368:8: error: "(" is not a valid filename
 # 0126 (int)
        ^
prog.c:370:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->0d<--
   ^
prog.c:370:18: error: invalid suffix "d" on integer constant
   1. (    2) -->0d<--
                  ^
prog.c:373:8: error: "(" is not a valid filename
 # 0127 (int)
        ^
prog.c:375:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5d<--
   ^
prog.c:375:17: error: invalid suffix "d" on integer constant
   1. (    2) -->5d<--
                 ^
prog.c:378:8: error: "(" is not a valid filename
 # 0128 (int)
        ^
prog.c:380:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5d<--
   ^
prog.c:380:17: error: invalid suffix "d" on integer constant
   1. (    2) -->5d<--
                 ^
prog.c:383:8: error: "(" is not a valid filename
 # 0129 (int)
        ^
prog.c:385:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->+5d<--
   ^
prog.c:385:18: error: invalid suffix "d" on integer constant
   1. (    3) -->+5d<--
                  ^
prog.c:388:8: error: "(" is not a valid filename
 # 0130 (int)
        ^
prog.c:390:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5d<--
   ^
prog.c:390:17: error: invalid suffix "d" on integer constant
   1. (    2) -->5d<--
                 ^
prog.c:393:8: error: "(" is not a valid filename
 # 0131 (int)
        ^
prog.c:395:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5d<--
   ^
prog.c:395:17: error: invalid suffix "d" on integer constant
   1. (    2) -->5d<--
                 ^
prog.c:398:8: error: "(" is not a valid filename
 # 0132 (int)
        ^
prog.c:400:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->+5d<--
   ^
prog.c:400:17: error: invalid suffix "d" on integer constant
   1. (    3) -->+5d<--
                 ^
prog.c:403:8: error: "(" is not a valid filename
 # 0133 (int)
        ^
prog.c:405:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5d<--
   ^
prog.c:405:17: error: invalid suffix "d" on integer constant
   1. (    2) -->5d<--
                 ^
prog.c:408:8: error: "(" is not a valid filename
 # 0134 (int)
        ^
prog.c:410:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->05d<--
   ^
prog.c:413:8: error: "(" is not a valid filename
 # 0135 (int)
        ^
prog.c:415:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5d<--
   ^
prog.c:418:8: error: "(" is not a valid filename
 # 0136 (int)
        ^
prog.c:420:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->05d<--
   ^
prog.c:423:8: error: "(" is not a valid filename
 # 0162 (int)
        ^
prog.c:425:3: error: expected identifier or '(' before numeric constant
   1. (    5) -->4.15d<--
   ^
prog.c:428:8: error: "(" is not a valid filename
 # 0163 (int)
        ^
prog.c:430:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->.2d<--
   ^
prog.c:433:8: error: "(" is not a valid filename
 # 0164 (int)
        ^
prog.c:435:3: error: expected identifier or '(' before numeric constant
   1. (    4) -->.10d<--
   ^
prog.c:438:8: error: "(" is not a valid filename
 # 0165 (int)
        ^
prog.c:440:3: error: expected identifier or '(' before numeric constant
   1. (    5) -->10.5d<--
   ^
prog.c:443:8: error: "(" is not a valid filename
 # 0166 (int)
        ^
prog.c:445:3: error: expected identifier or '(' before numeric constant
   1. (    5) -->10.5d<--
   ^
prog.c:448:8: error: "(" is not a valid filename
 # 0167 (int)
        ^
prog.c:450:3: error: expected identifier or '(' before numeric constant
   1. (    5) -->10.5d<--
   ^
prog.c:453:8: error: "(" is not a valid filename
 # 0168 (int)
        ^
prog.c:455:3: error: expected identifier or '(' before numeric constant
   1. (    5) -->10.5d<--
   ^
prog.c:458:8: error: "(" is not a valid filename
 # 0169 (int)
        ^
prog.c:460:3: error: expected identifier or '(' before numeric constant
   1. (    6) -->+10.5d<--
   ^
prog.c:463:8: error: "(" is not a valid filename
 # 0170 (int)
        ^
prog.c:465:3: error: expected identifier or '(' before numeric constant
   1. (    4) -->3.2d<--
   ^
prog.c:465:17: error: stray '@' in program
   1. (    4) -->3.2d<--
                 ^
prog.c:466:17: error: stray '@' in program
   2. (    3) --> 00<--
                 ^
prog.c:468:8: error: "(" is not a valid filename
 # 0171 (int)
        ^
prog.c:470:3: error: expected identifier or '(' before numeric constant
   1. (    4) -->3.2d<--
   ^
prog.c:470:17: error: stray '@' in program
   1. (    4) -->3.2d<--
                 ^
prog.c:471:17: error: stray '@' in program
   2. (    3) --> 01<--
                 ^
prog.c:473:8: error: "(" is not a valid filename
 # 0172 (int)
        ^
prog.c:475:3: error: expected identifier or '(' before numeric constant
   1. (    4) -->3.2d<--
   ^
prog.c:475:17: error: stray '@' in program
   1. (    4) -->3.2d<--
                 ^
prog.c:476:17: error: stray '@' in program
   2. (    3) -->-01<--
                 ^
prog.c:478:8: error: "(" is not a valid filename
 # 0173 (int)
        ^
prog.c:480:3: error: expected identifier or '(' before numeric constant
   1. (   16) -->@moulitest: .10d<--
   ^
prog.c:480:17: error: stray '@' in program
   1. (   16) -->@moulitest: .10d<--
                 ^
prog.c:481:17: error: stray '@' in program
   2. (   23) -->@moulitest: -0000000042<--
                 ^
prog.c:483:8: error: "(" is not a valid filename
 # 0174 (int)
        ^
prog.c:485:3: error: expected identifier or '(' before numeric constant
   1. (   18) -->@moulitest: .d .0d<--
   ^
prog.c:488:8: error: "(" is not a valid filename
 # 0175 (int)
        ^
prog.c:490:3: error: expected identifier or '(' before numeric constant
   1. (   18) -->@moulitest: .d .0d<--
   ^
prog.c:493:8: error: "(" is not a valid filename
 # 0176 (int)
        ^
prog.c:495:3: error: expected identifier or '(' before numeric constant
   1. (   20) -->@moulitest: 5.d 5.0d<--
   ^
prog.c:498:8: error: "(" is not a valid filename
 # 0182 (unsigned int)
        ^
prog.c:500:3: error: expected identifier or '(' before numeric constant
   1. (    2) -->5u<--
   ^
prog.c:501:17: error: invalid digit "9" in octal constant
   2. (   10) -->4294967295<--
                 ^
prog.c:503:8: error: "(" is not a valid filename
 # 0183 (unsigned int)
        ^
prog.c:505:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->15u<--
   ^
prog.c:508:8: error: "(" is not a valid filename
 # 0184 (unsigned int)
        ^
prog.c:510:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->15u<--
   ^
prog.c:513:8: error: "(" is not a valid filename
 # 0185 (unsigned int)
        ^
prog.c:515:3: error: expected identifier or '(' before numeric constant
   1. (    3) -->15u<--
   ^
prog.c:518:8: error: "(" is not a valid filename
 # 0186 (unsigned int)
        ^
prog.c:520:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->u<--
   ^
prog.c:523:8: error: "(" is not a valid filename
 # 0187 (unsigned int)
        ^
prog.c:525:3: error: expected identifier or '(' before numeric constant
   1. (    1) -->u<--
   ^
prog.c:528:8: error: "(" is not a valid filename
 # 0194 (unsigned long)
        ^
prog.c:530:3: error: expected identifier or '(' before numeric constant
   1. (    0) --><--
   ^
prog.c:530:17: error: stray '@' in program
   1. (    0) --><--
                 ^
prog.c:530:29: error: invalid suffix "u" on floating constant
prog.c:531:17: error: stray '@' in program
   2. (   10) -->4294967295<--
                 ^
prog.c:537:58: error: expected identifier or '(' before '->' token
prog.c:538:58: error: expected identifier or '(' before '->' token
prog.c:539:58: error: expected identifier or '(' before '->' token
prog.c:540:58: error: expected identifier or '(' before '->' token
prog.c:541:58: error: expected identifier or '(' before '->' token
prog.c:542:58: error: expected identifier or '(' before '->' token
prog.c:543:58: error: expected identifier or '(' before '->' token
prog.c:544:58: error: expected identifier or '(' before '->' token
prog.c:545:58: error: expected identifier or '(' before '->' token
prog.c:546:58: error: expected identifier or '(' before '->' token
prog.c:547:58: error: expected identifier or '(' before '->' token
prog.c:548:58: error: expected identifier or '(' before '->' token
prog.c:549:58: error: expected identifier or '(' before '->' token
prog.c:550:58: error: expected identifier or '(' before '->' token
prog.c:551:58: error: expected identifier or '(' before '->' token
prog.c:552:58: error: expected identifier or '(' before '->' token
    1.      ft_printf("");                                -> ""
                                                          ^
prog.c:553:58: error: expected identifier or '(' before '->' token
    2.      ft_printf("\n");                              -> "\n"
                                                          ^
prog.c:554:58: error: expected identifier or '(' before '->' token
    3.      ft_printf("test");                            -> "test"
                                                          ^
prog.c:555:58: error: expected identifier or '(' before '->' token
    4.      ft_printf("test\n");                          -> "test\n"
                                                          ^
prog.c:556:58: error: expected identifier or '(' before '->' token
    5.      ft_printf("1234");                            -> "1234"
                                                          ^
prog.c:557:58: error: expected identifier or '(' before '->' token
    6.      ft_printf("%%");                              -> "%"
                                                          ^
prog.c:558:58: error: expected identifier or '(' before '->' token
    7. FAIL ft_printf("%5%");                             -> "    %"
                                                          ^
prog.c:559:58: error: expected identifier or '(' before '->' token
    8. FAIL ft_printf("%-5%");                            -> "%    "
                                                          ^
prog.c:560:58: error: expected identifier or '(' before '->' token
    9. FAIL ft_printf("%.0%");                            -> "%"
                                                          ^
prog.c:561:58: error: expected identifier or '(' before '->' token
   10.      ft_printf("%%", "test");                      -> "%"
                                                          ^
prog.c:562:58: error: expected identifier or '(' before '->' token
   11. FAIL ft_printf("%   %", "test");                   -> "%"
                                                          ^
prog.c:563:58: error: expected identifier or '(' before '->' token
   12.      ft_printf("%x", 42);                          -> "2a"
                                                          ^
prog.c:564:58: error: expected identifier or '(' before '->' token
   13.      ft_printf("%X", 42);                          -> "2A"
                                                          ^
prog.c:565:58: error: expected identifier or '(' before '->' token
   14.      ft_printf("%x", 0);                           -> "0"
                                                          ^
prog.c:566:58: error: expected identifier or '(' before '->' token
   15.      ft_printf("%X", 0);                           -> "0"
                                                          ^
prog.c:567:58: error: expected identifier or '(' before '->' token
   16.      ft_printf("%x", -42);                         -> "ffffffd6"
                                                          ^
prog.c:568:30: warning: integer constant is so large that it is unsigned
   17.      ft_printf("%X", -42);                         -> "FFFFFFD6"
                              ^
prog.c:568:58: error: expected identifier or '(' before '->' token
   17.      ft_printf("%X", -42);                         -> "FFFFFFD6"
                                                          ^
prog.c:569:58: error: expected identifier or '(' before '->' token
   18.      ft_printf("%x", 4294967296);                  -> "0"
                                                          ^
prog.c:570:58: error: expected identifier or '(' before '->' token
   19.      ft_printf("%X", 4294967296);                  -> "0"
                                                          ^
prog.c:571:58: error: expected identifier or '(' before '->' token
   20.      ft_printf("%x", test);                        -> "0"
                                                          ^
prog.c:572:58: error: expected identifier or '(' before '->' token
   21. FAIL ft_printf("%10x", 42);                        -> "        2a"
                                                          ^
prog.c:573:58: error: expected identifier or '(' before '->' token
   22. FAIL ft_printf("%-10x", 42);                       -> "2a        "
                                                          ^
prog.c:574:58: error: expected identifier or '(' before '->' token
   23.      ft_printf("%lx", 4294967296);                 -> "100000000"
                                                          ^
prog.c:575:58: error: expected identifier or '(' before '->' token
   24.      ft_printf("%llX", 4294967296);                -> "100000000"
                                                          ^
prog.c:576:58: error: expected identifier or '(' before '->' token
   25.      ft_printf("%hx", 4294967296);                 -> "0"
                                                          ^
prog.c:577:58: error: expected identifier or '(' before '->' token
   26.      ft_printf("%hhX", 4294967296);                -> "0"
                                                          ^
prog.c:578:58: error: expected identifier or '(' before '->' token
   27.      ft_printf("%jx", 4294967295);                 -> "ffffffff"
                                                          ^
prog.c:579:58: error: expected identifier or '(' before '->' token
   28.      ft_printf("%jx", 4294967296);                 -> "100000000"
                                                          ^
prog.c:580:58: error: expected identifier or '(' before '->' token
   29.      ft_printf("%jx", -4294967296);                -> "ffffffff00000000"
                                                          ^
prog.c:581:58: error: expected identifier or '(' before '->' token
   30.      ft_printf("%jx", -4294967297);                -> "fffffffeffffffff"
                                                          ^
prog.c:582:58: error: expected identifier or '(' before '->' token
   31.      ft_printf("%llx", 9223372036854775807);       -> "7fffffffffffffff"
                                                          ^
prog.c:583:58: error: expected identifier or '(' before '->' token
   32.      ft_printf("%llx", 9223372036854775808);       -> "7fffffffffffffff"
                                                          ^
prog.c:584:58: error: expected identifier or '(' before '->' token
   33. FAIL ft_printf("%010x", 542);                      -> "000000021e"
                                                          ^
prog.c:585:58: error: expected identifier or '(' before '->' token
   34. FAIL ft_printf("%-15x", 542);                      -> "21e            "
                                                          ^
prog.c:586:58: error: expected identifier or '(' before '->' token
   35. FAIL ft_printf("%2x", 542);                        -> "21e"
                                                          ^
prog.c:587:58: error: expected identifier or '(' before '->' token
   36. FAIL ft_printf("%.2x", 5427);                      -> "1533"
                                                          ^
prog.c:588:58: error: expected identifier or '(' before '->' token
   37. FAIL ft_printf("%5.2x", 5427);                     -> " 1533"
                                                          ^
prog.c:589:58: error: expected identifier or '(' before '->' token
   38. FAIL ft_printf("%#x", 42);                         -> "0x2a"
                                                          ^
prog.c:590:58: error: expected identifier or '(' before '->' token
   39. FAIL ft_printf("%#llx", 9223372036854775807);      -> "0x7fffffffffffffff"
                                                          ^
prog.c:591:58: error: expected identifier or '(' before '->' token
   40. FAIL ft_printf("%#x", 0);                          -> "0"
                                                          ^
prog.c:592:58: error: expected identifier or '(' before '->' token
   41. FAIL ft_printf("%#x", 42);                         -> "0x2a"
                                                          ^
prog.c:593:58: error: expected identifier or '(' before '->' token
   42. FAIL ft_printf("%#X", 42);                         -> "0X2A"
                                                          ^
prog.c:594:58: error: expected identifier or '(' before '->' token
   43. FAIL ft_printf("%#8x", 42);                        -> "    0x2a"
                                                          ^
prog.c:595:58: error: expected identifier or '(' before '->' token
   44. FAIL ft_printf("%#08x", 42);                       -> "0x00002a"
                                                          ^
prog.c:596:58: error: expected identifier or '(' before '->' token
   45. FAIL ft_printf("%#-08x", 42);                      -> "0x2a    "
                                                          ^
prog.c:597:58: error: expected identifier or '(' before '->' token
   46. FAIL ft_printf("@moulitest: %#.x %#.0x", 0, 0);    -> "@moulitest:  "
                                                          ^
prog.c:598:58: error: expected identifier or '(' before '->' token
   47. FAIL ft_printf("@moulitest: %.x %.0x", 0, 0);      -> "@moulitest:  "
                                                          ^
prog.c:599:58: error: expected identifier or '(' before '->' token
   48. FAIL ft_printf("@moulitest: %5.x %5.0x", 0, 0);    -> "@moulitest:            "
                                                          ^
prog.c:600:58: error: expected identifier or '(' before '->' token
   49.      ft_printf("%s", "abc");                       -> "abc"
                                                          ^
prog.c:601:58: error: expected identifier or '(' before '->' token
   50.      ft_printf("%s", "this is a string");          -> "this is a string"
                                                          ^
prog.c:602:58: error: expected identifier or '(' before '->' token
   51.      ft_printf("%s ", "this is a string");         -> "this is a string "
                                                          ^
prog.c:603:58: error: expected identifier or '(' before '->' token
   52.      ft_printf("%s  ", "this is a string");        -> "this is a string  "
                                                          ^
prog.c:604:58: error: expected identifier or '(' before '->' token
   53.      ft_printf("this is a %s", "string");          -> "this is a string"
                                                          ^
prog.c:605:58: error: expected identifier or '(' before '->' token
   54.      ft_printf("%s is a string", "this");          -> "this is a string"
                                                          ^
prog.c:606:66: error: expected identifier or '(' before '->' token
   55.      ft_printf("Line Feed %s", "\n");              -> "Line Feed \n"
                                                                  ^
prog.c:607:88: error: expected identifier or '(' before '->' token
prog.c:608:75: error: expected identifier or '(' before '->' token
   57. FAIL ft_printf("%.2s is a string", "this");        -> "th is a string"
                                                                           ^
prog.c:609:58: error: expected identifier or '(' before '->' token
   58. FAIL ft_printf("%5.2s is a string", "this");       -> "   th is a string"
                                                          ^
prog.c:610:58: error: expected identifier or '(' before '->' token
   59. FAIL ft_printf("%10s is a string", "");            -> "           is a string"
                                                          ^
prog.c:611:58: error: expected identifier or '(' before '->' token
   60. FAIL ft_printf("%.2s is a string", "");            -> " is a string"
                                                          ^
prog.c:612:58: error: expected identifier or '(' before '->' token
   61. FAIL ft_printf("%5.2s is a string", "");           -> "      is a string"
                                                          ^
prog.c:613:58: error: expected identifier or '(' before '->' token
   62. FAIL ft_printf("%-10s is a string", "this");       -> "this       is a string"
                                                          ^
prog.c:614:58: error: expected identifier or '(' before '->' token
   63. FAIL ft_printf("%-.2s is a string", "this");       -> "th is a string"
                                                          ^
prog.c:615:58: error: expected identifier or '(' before '->' token
   64. FAIL ft_printf("%-5.2s is a string", "this");      -> "th    is a string"
                                                          ^
prog.c:616:58: error: expected identifier or '(' before '->' token
   65. FAIL ft_printf("%-10s is a string", "");           -> "           is a string"
                                                          ^
prog.c:617:58: error: expected identifier or '(' before '->' token
   66. FAIL ft_printf("%-.2s is a string", "");           -> " is a string"
                                                          ^
prog.c:618:58: error: expected identifier or '(' before '->' token
   67. FAIL ft_printf("%-5.2s is a string", "");          -> "      is a string"
                                                          ^
prog.c:619:58: error: expected identifier or '(' before '->' token
   68.      ft_printf("%s %s", "this", "is");             -> "this is"
                                                          ^
prog.c:620:58: error: expected identifier or '(' before '->' token
   69.      ft_printf("%s %s %s", "this", "is", "a");     -> "this is a"
                                                          ^
prog.c:621:58: error: expected identifier or '(' before '->' token
   70.      ft_printf("%s %s %s %s", "this", "is", "a", "multi"); -> "this is a multi"
                                                          ^
prog.c:622:58: error: expected identifier or '(' before '->' token
   71.      ft_printf("%s %s %s %s string. gg!", "this", "is", "a", "multi", "string"); -> "this is a multi string. gg!"
                                                          ^
prog.c:623:58: error: expected identifier or '(' before '->' token
   72.      ft_printf("%s%s%s%s%s", "this", "is", "a", "multi", "string"); -> "thisisamultistring"
                                                          ^
prog.c:624:58: error: expected identifier or '(' before '->' token
   73. FAIL ft_printf("@moulitest: %s", NULL);            -> "@moulitest: (null)@moulitest: "
                                                          ^
prog.c:625:58: error: expected identifier or '(' before '->' token
   74. FAIL ft_printf("%.2c", NULL);                      -> ""
                                                          ^
prog.c:626:58: error: expected identifier or '(' before '->' token
   75.      ft_printf("%s %s", NULL, string);             -> " string"
                                                          ^
prog.c:627:58: error: expected identifier or '(' before '->' token
   76.      ft_printf("%c", 42);                          -> "*"
                                                          ^
prog.c:628:58: error: expected identifier or '(' before '->' token
   77. FAIL ft_printf("%5c", 42);                         -> "    *"
                                                          ^
prog.c:629:58: error: expected identifier or '(' before '->' token
   78. FAIL ft_printf("%-5c", 42);                        -> "*    "
                                                          ^
prog.c:630:58: error: expected identifier or '(' before '->' token
   79.      ft_printf("@moulitest: %c", 0);               -> "@moulitest: "
                                                          ^
prog.c:631:58: error: expected identifier or '(' before '->' token
   80. FAIL ft_printf("%2c", 0);                          -> " "
                                                          ^
prog.c:632:58: error: expected identifier or '(' before '->' token
   81.      ft_printf("null %c and text", 0);             -> "null  and text"
                                                          ^
prog.c:633:58: error: expected identifier or '(' before '->' token
   82. FAIL ft_printf("% c", 0);                          -> ""
                                                          ^
prog.c:634:58: error: expected identifier or '(' before '->' token
   83.      ft_printf("%o", 40);                          -> "50"
                                                          ^
prog.c:635:58: error: expected identifier or '(' before '->' token
   84. FAIL ft_printf("%5o", 41);                         -> "   51"
                                                          ^
prog.c:636:58: error: expected identifier or '(' before '->' token
   85. FAIL ft_printf("%05o", 42);                        -> "00052"
                                                          ^
prog.c:637:58: error: expected identifier or '(' before '->' token
   86. FAIL ft_printf("%-5o", 2500);                      -> "4704 "
                                                          ^
prog.c:638:58: error: expected identifier or '(' before '->' token
   87. FAIL ft_printf("%#6o", 2500);                      -> " 04704"
                                                          ^
prog.c:639:58: error: expected identifier or '(' before '->' token
   88. FAIL ft_printf("%-#6o", 2500);                     -> "04704 "
                                                          ^
prog.c:640:58: error: expected identifier or '(' before '->' token
   89. FAIL ft_printf("%-05o", 2500);                     -> "4704 "
                                                          ^
prog.c:641:2: error: stray '\342' in program
   90. FAIL ft_printf("%-5.10o", 2500);                   -> "0000004704"
  ^
prog.c:641:2: error: stray '\200' in program
prog.c:641:2: error: stray '\223' in program
prog.c:641:58: error: expected identifier or '(' before '->' token
   90. FAIL ft_printf("%-5.10o", 2500);                   -> "0000004704"
                                                          ^
prog.c:642:2: error: stray '\342' in program
   91. FAIL ft_printf("%-10.5o", 2500);                   -> "04704     "
  ^
prog.c:642:2: error: stray '\200' in program
prog.c:642:2: error: stray '\223' in program
prog.c:642:58: error: expected identifier or '(' before '->' token
   91. FAIL ft_printf("%-10.5o", 2500);                   -> "04704     "
                                                          ^
prog.c:643:58: error: expected identifier or '(' before '->' token
   92.      ft_printf("@moulitest: %o", 0);               -> "@moulitest: 0"
                                                          ^
prog.c:644:58: error: expected identifier or '(' before '->' token
   93. FAIL ft_printf("@moulitest: %.o %.0o", 0, 0);      -> "@moulitest:  "
                                                          ^
prog.c:645:58: error: expected identifier or '(' before '->' token
   94. FAIL ft_printf("@moulitest: %5.o %5.0o", 0, 0);    -> "@moulitest:            "
                                                          ^
prog.c:646:58: error: expected identifier or '(' before '->' token
   95. FAIL ft_printf("@moulitest: %#.o %#.0o", 0, 0);    -> "@moulitest: 0 0"
                                                          ^
prog.c:647:58: error: expected identifier or '(' before '->' token
   96. FAIL ft_printf("@moulitest: %.10o", 42);           -> "@moulitest: 0000000052"
                                                          ^
prog.c:648:29: warning: integer constant is too large for its type
   97.      ft_printf("%d", 1);                           -> "1"
                             ^
prog.c:648:58: error: expected identifier or '(' before '->' token
   97.      ft_printf("%d", 1);                           -> "1"
                                                          ^
prog.c:649:58: error: expected identifier or '(' before '->' token
   98.      ft_printf("the %d", 1);                       -> "the 1"
                                                          ^
prog.c:650:58: error: expected identifier or '(' before '->' token
   99.      ft_printf("%d is one", 1);                    -> "1 is one"
                                                          ^
prog.c:651:58: error: expected identifier or '(' before '->' token
  100.      ft_printf("%d", -1);                          -> "-1"
                                                          ^
prog.c:652:58: error: expected identifier or '(' before '->' token
  101.      ft_printf("%d", 4242);                        -> "4242"
                                                          ^
prog.c:653:58: error: expected identifier or '(' before '->' token
  102.      ft_printf("%d", -4242);                       -> "-4242"
                                                          ^
prog.c:654:58: error: expected identifier or '(' before '->' token
  103.      ft_printf("%d", 2147483647);                  -> "2147483647"
                                                          ^
prog.c:655:58: error: expected identifier or '(' before '->' token
  104.      ft_printf("%d", 2147483648);                  -> "-2147483648"
                                                          ^
prog.c:656:58: error: expected identifier or '(' before '->' token
  105.      ft_printf("%d", –2147483648);               -> "0"
                                                          ^
prog.c:657:58: error: expected identifier or '(' before '->' token
  106.      ft_printf("%d", –2147483649);               -> "0"
                                                          ^
prog.c:658:58: error: expected identifier or '(' before '->' token
  107. FAIL ft_printf("% d", 42);                         -> " 42"
                                                          ^
prog.c:659:58: error: expected identifier or '(' before '->' token
  108. FAIL ft_printf("% d", -42);                        -> "-42"
                                                          ^
prog.c:660:58: error: expected identifier or '(' before '->' token
  109. FAIL ft_printf("%+d", 42);                         -> "+42"
                                                          ^
prog.c:661:58: error: expected identifier or '(' before '->' token
  110. FAIL ft_printf("%+d", -42);                        -> "-42"
                                                          ^
prog.c:662:58: error: expected identifier or '(' before '->' token
  111. FAIL ft_printf("%+d", 0);                          -> "+0"
                                                          ^
prog.c:663:58: error: expected identifier or '(' before '->' token
  112. FAIL ft_printf("%+d", 4242424242424242424242);     -> "-1"
                                                          ^
prog.c:664:58: error: expected identifier or '(' before '->' token
  113. FAIL ft_printf("% +d", 42);                        -> "+42"
                                                          ^
prog.c:665:58: error: expected identifier or '(' before '->' token
  114. FAIL ft_printf("% +d", -42);                       -> "-42"
                                                          ^
prog.c:666:58: error: expected identifier or '(' before '->' token
  115. FAIL ft_printf("%+ d", 42);                        -> "+42"
                                                          ^
prog.c:667:58: error: expected identifier or '(' before '->' token
  116. FAIL ft_printf("%+ d", -42);                       -> "-42"
                                                          ^
prog.c:668:58: error: expected identifier or '(' before '->' token
  117. FAIL ft_printf("%  +d", 42);                       -> "+42"
                                                          ^
prog.c:669:58: error: expected identifier or '(' before '->' token
  118. FAIL ft_printf("%  +d", -42);                      -> "-42"
                                                          ^
prog.c:670:58: error: expected identifier or '(' before '->' token
  119. FAIL ft_printf("%+  d", 42);                       -> "+42"
                                                          ^
prog.c:671:58: error: expected identifier or '(' before '->' token
  120. FAIL ft_printf("%+  d", -42);                      -> "-42"
                                                          ^
prog.c:672:58: error: expected identifier or '(' before '->' token
  121. FAIL ft_printf("% ++d", 42);                       -> "+42"
                                                          ^
prog.c:673:58: error: expected identifier or '(' before '->' token
  122. FAIL ft_printf("% ++d", -42);                      -> "-42"
                                                          ^
prog.c:674:2: error: stray '\342' in program
  123. FAIL ft_printf("%++ d", 42);                       -> "+42"
  ^
prog.c:674:2: error: stray '\210' in program
prog.c:674:2: error: stray '\222' in program
prog.c:674:58: error: expected identifier or '(' before '->' token
  123. FAIL ft_printf("%++ d", 42);                       -> "+42"
                                                          ^
prog.c:675:58: error: expected identifier or '(' before '->' token
  124. FAIL ft_printf("%++ d", -42);                      -> "-42"
                                                          ^
prog.c:676:2: error: stray '\342' in program
  125. FAIL ft_printf("%0d", -42);                        -> "-42"
  ^
prog.c:676:2: error: stray '\210' in program
prog.c:676:2: error: stray '\222' in program
prog.c:676:58: error: expected identifier or '(' before '->' token
  125. FAIL ft_printf("%0d", -42);                        -> "-42"
                                                          ^
prog.c:677:58: error: expected identifier or '(' before '->' token
  126. FAIL ft_printf("%00d", -42);                       -> "-42"
                                                          ^
prog.c:678:58: error: expected identifier or '(' before '->' token
  127. FAIL ft_printf("%5d", 42);                         -> "   42"
                                                          ^
prog.c:679:58: error: expected identifier or '(' before '->' token
  128. FAIL ft_printf("%05d", 42);                        -> "00042"
                                                          ^
prog.c:680:58: error: expected identifier or '(' before '->' token
  129. FAIL ft_printf("%0+5d", 42);                       -> "+0042"
                                                          ^
prog.c:681:58: error: expected identifier or '(' before '->' token
  130. FAIL ft_printf("%5d", -42);                        -> "  -42"
                                                          ^
prog.c:682:2: error: stray '\342' in program
  131. FAIL ft_printf("%05d", -42);                       -> "-0042"
  ^
prog.c:682:2: error: stray '\200' in program
prog.c:682:2: error: stray '\223' in program
prog.c:682:58: error: expected identifier or '(' before '->' token
  131. FAIL ft_printf("%05d", -42);                       -> "-0042"
                                                          ^
prog.c:683:58: error: expected identifier or '(' before '->' token
  132. FAIL ft_printf("%0+5d", -42);                      -> "-0042"
                                                          ^
prog.c:684:2: error: stray '\342' in program
  133. FAIL ft_printf("%-5d", 42);                        -> "42   "
  ^
prog.c:684:2: error: stray '\200' in program
prog.c:684:2: error: stray '\223' in program
prog.c:684:58: error: expected identifier or '(' before '->' token
  133. FAIL ft_printf("%-5d", 42);                        -> "42   "
                                                          ^
prog.c:685:58: error: expected identifier or '(' before '->' token
  134. FAIL ft_printf("%-05d", 42);                       -> "42   "
                                                          ^
prog.c:686:31: warning: integer constant is so large that it is unsigned
  135. FAIL ft_printf("%-5d", -42);                       -> "-42  "
                               ^
prog.c:686:58: error: expected identifier or '(' before '->' token
  135. FAIL ft_printf("%-5d", -42);                       -> "-42  "
                                                          ^
prog.c:687:58: error: expected identifier or '(' before '->' token
  136. FAIL ft_printf("%-05d", -42);                      -> "-42  "
                                                          ^
prog.c:688:2: error: stray '\342' in program
  137.      ft_printf("%hd", 32767);                      -> "32767"
  ^
prog.c:688:2: error: stray '\200' in program
prog.c:688:2: error: stray '\223' in program
prog.c:688:32: warning: integer constant is so large that it is unsigned
  137.      ft_printf("%hd", 32767);                      -> "32767"
                                ^
prog.c:688:58: error: expected identifier or '(' before '->' token
  137.      ft_printf("%hd", 32767);                      -> "32767"
                                                          ^
prog.c:689:58: error: expected identifier or '(' before '->' token
  138.      ft_printf("%hd", −32768);                   -> "0"
                                                          ^
prog.c:690:58: error: expected identifier or '(' before '->' token
  139.      ft_printf("%hd", 32768);                      -> "-32768"
                                                          ^
prog.c:691:2: error: stray '\342' in program
  140.      ft_printf("%hd", −32769);                   -> "0"
  ^
prog.c:691:2: error: stray '\200' in program
prog.c:691:2: error: stray '\223' in program
prog.c:691:58: error: expected identifier or '(' before '->' token
  140.      ft_printf("%hd", −32769);                   -> "0"
                                                          ^
prog.c:692:2: error: stray '\342' in program
  141.      ft_printf("%hhd", 127);                       -> "127"
  ^
prog.c:692:2: error: stray '\200' in program
prog.c:692:2: error: stray '\223' in program
prog.c:692:58: error: expected identifier or '(' before '->' token
  141.      ft_printf("%hhd", 127);                       -> "127"
                                                          ^
prog.c:693:58: error: expected identifier or '(' before '->' token
  142.      ft_printf("%hhd", 128);                       -> "-128"
                                                          ^
prog.c:694:58: error: expected identifier or '(' before '->' token
  143.      ft_printf("%hhd", -128);                      -> "-128"
                                                          ^
prog.c:695:58: error: expected identifier or '(' before '->' token
  144.      ft_printf("%hhd", -129);                      -> "127"
                                                          ^
prog.c:696:58: error: expected identifier or '(' before '->' token
  145.      ft_printf("%ld", 2147483647);                 -> "2147483647"
                                                          ^
prog.c:697:60: error: expected identifier or '(' before '->' token
  146.      ft_printf("%ld", –2147483648);              -> "0"
                                                            ^
prog.c:698:58: error: expected identifier or '(' before '->' token
  147.      ft_printf("%ld", 2147483648);                 -> "2147483648"
                                                          ^
prog.c:699:58: error: expected identifier or '(' before '->' token
  148.      ft_printf("%ld", –2147483649);              -> "0"
                                                          ^
prog.c:700:58: error: expected identifier or '(' before '->' token
  149.      ft_printf("%lld", 9223372036854775807);       -> "9223372036854775807"
                                                          ^
prog.c:701:58: error: expected identifier or '(' before '->' token
  150.      ft_printf("%lld", -9223372036854775808);      -> "-9223372036854775808"
                                                          ^
prog.c:702:58: error: expected identifier or '(' before '->' token
  151.      ft_printf("%jd", 9223372036854775807);        -> "9223372036854775807"
                                                          ^
prog.c:703:58: error: expected identifier or '(' before '->' token
  152.      ft_printf("%jd", –9223372036854775808);     -> "0"
                                                          ^
prog.c:704:58: error: expected identifier or '(' before '->' token
  153.      ft_printf("%zd", 4294967295);                 -> "4294967295"
                                                          ^
prog.c:705:58: error: expected identifier or '(' before '->' token
  154.      ft_printf("%zd", 4294967296);                 -> "4294967296"
                                                          ^
prog.c:706:58: error: expected identifier or '(' before '->' token
  155.      ft_printf("%zd", –0);                       -> "0"
                                                          ^
prog.c:707:58: error: expected identifier or '(' before '->' token
  156.      ft_printf("%zd", –1);                       -> "0"
                                                          ^
prog.c:708:58: error: expected identifier or '(' before '->' token
  157.      ft_printf("%d", 1);                           -> "1"
                                                          ^
prog.c:709:58: error: expected identifier or '(' before '->' token
  158.      ft_printf("%d %d", 1, -2);                    -> "1 -2"
                                                          ^
prog.c:710:58: error: expected identifier or '(' before '->' token
  159.      ft_printf("%d %d %d", 1, -2, 33);             -> "1 -2 33"
                                                          ^
prog.c:711:58: error: expected identifier or '(' before '->' token
  160.      ft_printf("%d %d %d %d", 1, -2, 33, 42);      -> "1 -2 33 42"
                                                          ^
prog.c:712:58: error: expected identifier or '(' before '->' token
  161.      ft_printf("%d %d %d %d gg!", 1, -2, 33, 42, 0); -> "1 -2 33 42 gg!"
                                                          ^
prog.c:713:58: error: expected identifier or '(' before '->' token
  162. FAIL ft_printf("%4.15d", 42);                      -> "000000000000042"
                                                          ^
prog.c:714:58: error: expected identifier or '(' before '->' token
  163. FAIL ft_printf("%.2d", 4242);                      -> "4242"
                                                          ^
prog.c:715:58: error: expected identifier or '(' before '->' token
  164. FAIL ft_printf("%.10d", 4242);                     -> "0000004242"
                                                          ^
prog.c:716:58: error: expected identifier or '(' before '->' token
  165. FAIL ft_printf("%10.5d", 4242);                    -> "     04242"
                                                          ^
prog.c:717:58: error: expected identifier or '(' before '->' token
  166. FAIL ft_printf("%-10.5d", 4242);                   -> "04242     "
                                                          ^
prog.c:718:58: error: expected identifier or '(' before '->' token
  167. FAIL ft_printf("% 10.5d", 4242);                   -> "     04242"
                                                          ^
prog.c:719:58: error: expected identifier or '(' before '->' token
  168. FAIL ft_printf("%+10.5d", 4242);                   -> "    +04242"
                                                          ^
prog.c:720:58: error: expected identifier or '(' before '->' token
  169. FAIL ft_printf("%-+10.5d", 4242);                  -> "+04242    "
                                                          ^
prog.c:721:58: error: expected identifier or '(' before '->' token
  170. FAIL ft_printf("%03.2d", 0);                       -> " 00"
                                                          ^
prog.c:722:58: error: expected identifier or '(' before '->' token
  171. FAIL ft_printf("%03.2d", 1);                       -> " 01"
                                                          ^
prog.c:723:58: error: expected identifier or '(' before '->' token
  172. FAIL ft_printf("%03.2d", -1);                      -> "-01"
                                                          ^
prog.c:
stdout
Standard output is empty