hello friends,
i m doing programming in vc++.
but while making a basic program of link list facing a problem.
when i try to add aaloc.h file it turns into atlalloc.h.
there is no file as alloc.h.

#include <stdio.h>
#include <atlalloc.h>
struct node{
    int data;
    struct node *link;
void add(struct node *);
void main(){
    struct node *start;
void add(struct node *temp){
    printf("one more loop");

**pls help how to run this program**

Recommended Answers

All 3 Replies

why would you want alloc.h? You don't need it to just allocate memory with malloc(), which is declared in stdlib.h.

thanks for ur reply
but what if i need to use calloc function.
i have read that calloc and malloc fucntion is defined in alloc.h
more specifically : alloc.h is absent in vc++??

Both those are declared in stdlib.h, not alloc.h. AFAIK alloc.h is a non-standard extension by gcc and MinGW compilers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.