User Profile

Collapse

Profile Sidebar

Collapse
Atos
Atos
Last Activity: Sep 26 '08, 08:55 PM
Joined: Jun 14 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Atos
    replied to stdarg.h
    Well, about the "bold", you are right, i'm sorry, but i wrote it firstly in Microsoft Office Word and then paste it here and it was pasted in bold.... then i was bored to tell you the truth to write it again :)

    As far as the code is concerned:
    -> About the comments and the style i use, i make no comment.....
    -> About the spaces and blanks i use, even though i shouldn't say anything, i thought i was best to...
    See more | Go to post

    Leave a comment:


  • Atos
    replied to fopen manipulation (in C)
    in C
    if you had taken a moment to read my code you would have seen that it was a "explanator y" code and this was it's purpose. To show a way to solve a problem. Besides it was only a function.

    If you think that by only reading books and writing code and NOT by READING CODE then...... ( i don't really have to say anything )...
    See more | Go to post

    Leave a comment:


  • Atos
    started a topic stdarg.h

    stdarg.h

    <stdarg.h>
    va_list
    type of object holding context information
    void va_start(va_lis t ap, lastarg);
    Initialisation macro which must be called once before any unnamed argument is accessed. Stores context information in ap. lastarg is the last named parameter of the function.
    type va_arg(va_list ap, type);
    Yields value of the type (type) and value of the next unnamed argument.
    void va_end(va_list...
    See more | Go to post
    Last edited by JosAH; Jul 14 '08, 05:02 PM. Reason: removed those preposterous bold-tags; we'll see ,,,

  • Atos
    replied to about ANSI C Standard...
    in C
    I think that there is no need for owing the ANSI C STANDARD except if you want to wrtite a compiler or some sort....
    Besides, the standard is a struct document about the syntax of the language and so on....
    I think that in K&R book somewhere ( or in another book i do not remember exactly ) states what i said above. If you wanna write a compiler take the standard, else not.
    See more | Go to post

    Leave a comment:


  • Atos
    replied to fopen manipulation (in C)
    in C
    Code:
    <Solution Snipped>

    I think that comments cover the most part...
    See more | Go to post
    Last edited by Banfa; Jun 16 '08, 09:47 AM. Reason: Removed full code solution

    Leave a comment:


  • Atos
    replied to Evaluation of arguments in function calls
    in C
    I don't think that C99 is a standard in the complete sense...
    Most compilers ( if not all ), do not support it.

    Anyway, this shuold not be the case however, cause you are talking for a non-portable code using a standard that was made to produce portable code!

    As far as i know, function arguments are not guaranteed a standard order of evaluation.
    See more | Go to post

    Leave a comment:


  • Atos
    started a topic Binary Search
    in C

    Binary Search

    Binary search is used to locate a value in a sorted list of values.
    It selects the middle element in the array of sorted values, and compares it with the target value; that is the key we are searhing for in the array.
    If it islower than the target value then the search is made after that middle element and till the end of the array. If it is equal then the target value is found and the middle is returned. Otherwise, search is made from...
    See more | Go to post

  • Atos
    started a topic Single-Linked List in C
    in C

    Single-Linked List in C

    SINGLE-LINKED LIST


    Let's start with the simplest kind of linked list : the single-linked list which only has one link per node. That node except from the data it contains, which might be anything from a short integer value to a complex struct type, also has a pointer to
    the next node in the single-linked list. That pointer will be NULL if the end of the single-linked list is encountered.
    The single-linked...
    See more | Go to post

  • hello, i am new to this forum and i this is my first attempt to help !

    First of all you do not initialize head to NULL. So head = NULL is really needed in the beginning.

    Then, there is nothing wrong with your function. The only thing that i see wrong is calling it second time with invalid addresses for free function.

    You have head and pointer point to the same thing: the start of the list, and of course...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...