A very long list of questions... maybe to long...

This is a discussion on A very long list of questions... maybe to long... within the C Programming forums, part of the General Programming Boards category; Originally Posted by citizen > Generally, rewriting printf is a waste of your time btw. You could hack it, but ...

  1. #16
    Registered User
    Join Date
    May 2007
    Posts
    45
    Quote Originally Posted by citizen View Post
    >
    Generally, rewriting printf is a waste of your time btw. You could hack it, but the type checking would never be as strict as the standard one (without fundamentally changing how it's called anyway) which is pretty much useless to you.
    Yes I know it would be a waste of time, (= But I think if I tried a project like that once I finished it I'd have a deeper understanding of the c language also I think it would be better if i know why the functions work and how they work, or at least it would be better than just using something just because at least thats how i look at it =)
    Thank you for your post (=

    With all the help I am being given maybe soon I can start answering others questions (=




    Also anyone know where the rest of the "hidden boards" are, im really bored and I must post in all of them (=
    Last edited by Ravens'sWrath; 05-16-2007 at 05:01 AM.

  2. #17
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    C library functions work by calling O/S specific functions eventually down the line. Those O/S functions are called system calls usually for *nix based systems. For Windows, they're generally just called Windows API functions.

    If you are trying to find out what goes on under the hood of a C library function like printf(), I'd look into writing programs that interface directly with the O/S. For *nix systems, it's write(). For Windows it's something like WriteConsole() (or some variant or whatever the real one is called).

    If you can figure out how to write a hello world application using O/S specific items, you could expand to do other things. Windows has functions to do all kinds of things with a console program, including reading off mouse events.

    Obviously this isn't quite portable, but if the idea is to learn what the C standard library is doing, this is probably one way to learn a little bit about it.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do i un-SHA1 hash something..
    By willc0de4food in forum C Programming
    Replies: 4
    Last Post: 09-14-2005, 05:59 AM
  2. Replies: 6
    Last Post: 03-02-2005, 01:45 AM
  3. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  4. problem with structures and linked list
    By Gkitty in forum C Programming
    Replies: 6
    Last Post: 12-12-2002, 05:40 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21