~ubuntu-branches/ubuntu/hardy/swig1.3/hardy

« back to all changes in this revision

Viewing changes to Examples/php4/variables/example.c

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
char            *strvar = 0;
21
21
const char       cstrvar[] = "Goodbye";
22
22
int             *iptrvar = 0;
23
 
char             name[256] = "Dave";
 
23
char             name[5] = "Dave";
24
24
char             path[256] = "/home/beazley";
25
25
 
26
26
 
48
48
  printf("strvar    = %s\n", strvar ? strvar : "(null)");
49
49
  printf("cstrvar   = %s\n", cstrvar ? cstrvar : "(null)");
50
50
  printf("iptrvar   = %p\n", iptrvar);
51
 
  printf("name      = %s\n", name);
52
 
  printf("ptptr     = %p (%d, %d)\n", ptptr, ptptr ? ptptr->x : 0, ptptr ? ptptr->y : 0);
 
51
  printf("name      = %c%c%c%c%c\n", name[0],name[1],name[2],name[3],name[4]);
 
52
  printf("ptptr     = %p %s\n", ptptr, Point_print( ptptr ) );
53
53
  printf("pt        = (%d, %d)\n", pt.x, pt.y);
54
54
  printf("status    = %d\n", status);
55
55
}