Can anyone help : ERROR 296

ramesh.sarda_at_gmail.com
Date: 09/22/05


Date: 22 Sep 2005 01:16:24 -0700

Error 298: "test.c", line 6 # In ANSI C bitfields must be one of 'int',
    'signed int', or 'unsigned int' type.
          u_char field1 :4;
-------

#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>

struct {
      u_char field1 :4;
}full_of_fields;

int main()
{
        int *ptr;
        ptr=malloc(10);
        printf ("Jai Shiv\n");
}