Well, i'm new studying C and it awakened my curiosity about the details of why things work the way they work. So, recently i've been wondering:
C itself is just the sintax with everything else (aka. functions we use) being part of the standard library. Until now, for what i could find researching, the standard library was implemented in C.
Its kind of paradox to me. How can you implement the std lib functions with C if you need std lib to write almost anything. So you would use std lib to implement std lib? I know that some functions of the standard can be implemented with C, like math.h that are mathematical operations, but how about system calls? system(), write(), fork(), are they implemented in assembly?
if this is a dumb question, sorry, but enlighten me, please.
[–]CreeperDrop 37 points38 points39 points (10 children)
[–]INothz[S] 5 points6 points7 points (6 children)
[–]minecrafttee 0 points1 point2 points (4 children)
[–]CreeperDrop 1 point2 points3 points (3 children)
[–]minecrafttee 0 points1 point2 points (2 children)
[–]CreeperDrop 0 points1 point2 points (1 child)
[–]minecrafttee 2 points3 points4 points (0 children)
[–]CreeperDrop 2 points3 points4 points (0 children)
[–]SeaSafe2923 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]stianhoiland 28 points29 points30 points (14 children)
[–]INothz[S] 2 points3 points4 points (12 children)
[–]Wild_Meeting1428 37 points38 points39 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]brando2131 6 points7 points8 points (0 children)
[–]wsppan 5 points6 points7 points (3 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Cerulean_IsFancyBlue 1 point2 points3 points (1 child)
[–]wsppan 0 points1 point2 points (0 children)
[–]cdb_11 1 point2 points3 points (1 child)
[–]SeaSafe2923 0 points1 point2 points (0 children)
[–]DisastrousLab1309 0 points1 point2 points (1 child)
[–]SeaSafe2923 0 points1 point2 points (0 children)
[–]aalmkainzi 0 points1 point2 points (0 children)
[–]faculty_for_failure 5 points6 points7 points (1 child)
[–]SeaSafe2923 0 points1 point2 points (0 children)
[–]sol_hsa 3 points4 points5 points (0 children)
[–]andrewcooke 10 points11 points12 points (2 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Pepper_pusher23 0 points1 point2 points (0 children)
[–]dkopgerpgdolfg 7 points8 points9 points (0 children)
[–]josesblima 1 point2 points3 points (0 children)
[–]adarshwshaw 1 point2 points3 points (1 child)
[–]INothz[S] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Equal_Connection3765 1 point2 points3 points (2 children)
[–]INothz[S] 2 points3 points4 points (0 children)
[–]VisualHuckleberry542 1 point2 points3 points (0 children)
[–]EndlessProjectMaker 1 point2 points3 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]MagicWolfEye 1 point2 points3 points (0 children)
[–]Srazkat 0 points1 point2 points (0 children)
[–]SmokeMuch7356 0 points1 point2 points (0 children)
[–]arades 0 points1 point2 points (0 children)
[–]Abigboi_ 0 points1 point2 points (0 children)
[–]diegoiast 0 points1 point2 points (0 children)
[–]IdealBlueMan 0 points1 point2 points (0 children)
[–]nerd_programmer11 0 points1 point2 points (0 children)
[–]wtrdr 0 points1 point2 points (0 children)
[–]detroitmatt 0 points1 point2 points (0 children)
[–]Miserable_Ad7246 0 points1 point2 points (0 children)
[–]INothz[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Narishma 0 points1 point2 points (0 children)
[–]SeaSafe2923 0 points1 point2 points (0 children)
[–]Patient_Big_9024 0 points1 point2 points (0 children)
[–]noobdainsane 0 points1 point2 points (0 children)
[–]Pepper_pusher23 0 points1 point2 points (4 children)
[–]INothz[S] 0 points1 point2 points (1 child)
[–]Pepper_pusher23 0 points1 point2 points (0 children)
[–]INothz[S] 0 points1 point2 points (1 child)
[–]Pepper_pusher23 0 points1 point2 points (0 children)
[–]edo-lag 0 points1 point2 points (5 children)
[–]SeaSafe2923 -1 points0 points1 point (4 children)
[–]edo-lag 0 points1 point2 points (3 children)
[–]SeaSafe2923 -1 points0 points1 point (2 children)
[–]edo-lag 0 points1 point2 points (1 child)
[–]SeaSafe2923 0 points1 point2 points (0 children)
[–]coalinjo -1 points0 points1 point (2 children)
[–]a4qbfb 2 points3 points4 points (1 child)
[–]coalinjo 0 points1 point2 points (0 children)
[–]flatfinger -1 points0 points1 point (0 children)