Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: chachi
  • Content: Threads
  • Order by date
  1. chachi

    Printing linked list to binary file

    First of all, sorry for the profuse code that follows, but I don't want to post too little info. I'm trying to print a linked list that is associated with a binary file. The linked list has only the partid, offset and next pointer. I can only get my print routine to print the last record...
  2. chachi

    descending ordered list

    The following code orders a linked list in ascending order: while (currentPtr != NULL && value > currentPtr->data) { previousPtr = currentPtr; currentPtr = currentPtr->nextPtr; } How might I alter this to sort descending?
  3. chachi

    pointer initialization

    In the following code, why is the line highlighted in red set to null? #include &quot;stdafx.h&quot; #include <stdio.h> #include <stdlib.h> struct listNode { char data; struct listNode *nextPtr; }; typedef struct listNode LISTNODE; typedef LISTNODE *LISTNODEPTR; void insert(LISTNODEPTR *...

Part and Inventory Search

Back
Top