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 strongm 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: *

  1. AndyDoyle

    Can anyone spot the NULL pointer assignment

    /*502796P4 - Final Report*/ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <conio.h> //#define COMPUTEACH #define UPDATED &quot;502796nf.dat&quot; #define MAST_SIZE sizeof(struct MASTER_REC) void printHeaders(void); FILE *fp,*u_ptr; struct MASTER_REC{ char cust_code[6]...
  2. AndyDoyle

    subtracting float from long

    I have a small problem of subtracting a float value from a long. When I run the program because cust bal is a float and credit limit is a long when I come to subtract one from the other it isn't working because cust bal is not bigger than credit limit ie. first record:- -2407.629 -...
  3. AndyDoyle

    different results every time

    I have a file sort program thats causing me some confusion? Every time I run it I'm getting different results? I am opening the file allocating memory then reading the data to memory like so. void memory_write(union Recs *mem) { char temp[104]; rewind(d_ptr)...
  4. AndyDoyle

    displaying middle part of strings.

    Just a quickie, I have some various length strings, which are all '\n' terminated. However I need to display them broken up into different parts. eg if one is 20 chars and I need to break up into 4 chars then 12 chars then 4 chars. cvhh cjhbsdhcjugh bhsy Thankyou. Sorry its not more...
  5. AndyDoyle

    qsort and unions

    I have a binary file that contains vaious length records that are held in structures. Here is a sample of the file :- I10014 010006 0002 I10006 010006 0001 I10006 049301 0009 I10022 012807 0008 I10049 012106 0099 I10065 054402 0100 C10081 COVER SYSTEMS LTD ALBOY RD;KINVER;SOUTH STAFFS; ...

Part and Inventory Search

Back
Top