User Profile

Collapse

Profile Sidebar

Collapse
vjsarthy
vjsarthy
Last Activity: Mar 28 '08, 04:39 PM
Joined: Feb 19 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vjsarthy
    started a topic Include file in a different location
    in C

    Include file in a different location

    How do I include a include file which is in a different folder and the .c file where I am calling this file is in a different folder?

    Lets say I want to include sample.h file which is in a different folder.

    is it like #include "c:\difffolder\ sample.h" ?

    Is it same syntax for both windows and unix based compiler?

    Please advise.
    See more | Go to post

  • vjsarthy
    replied to malloc problem
    in C
    Thank you very much Rick and Cats.

    To see if this works on a 64 bit machine, I ran the .exe file in a 64 bit machine. It gives me the same error.

    The reason could be that this executable was created in a 32 bit machine. Since the 64 bit machine did nt have VC++, I was nt able to create the exe in that machine.

    Do you think its worth installing VC++ in the 64 bit machine and try executing this file. That...
    See more | Go to post

    Leave a comment:


  • vjsarthy
    replied to malloc problem
    in C
    Thank you very much for your reply.
    So, is this the limitation of malloc or the computer? or VC++?
    What do you think?...
    See more | Go to post

    Leave a comment:


  • vjsarthy
    replied to malloc problem
    in C
    Each of the number is a node and it carries vital information (when decoded). Given any two nodes, I should connect those nodes by finding the "in-between" link nodes (which are again in these 580M numbers).

    I cannot use SQL or Oracle as these are not supported by the client....
    See more | Go to post

    Leave a comment:


  • vjsarthy
    started a topic malloc problem
    in C

    malloc problem

    Hi All,

    I am trying to use malloc function to allocate memory for 580,000,000 numbers (long int).

    valid = 580000000;
    infoBuffer = malloc((valid)* sizeof(long));

    if(!infoBuffer)
    printf("Allocat ing memory failed\n");
    else
    printf("Success ful memory allocation\n");

    I have all these numbers in a file.

    I am using my...
    See more | Go to post
No activity results to display
Show More
Working...