comp.lang.ada
 help / color / mirror / Atom feed
* problems with interfacing c
@ 2011-01-20 20:21 Stoik
  2011-01-20 20:56 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 13+ messages in thread
From: Stoik @ 2011-01-20 20:21 UTC (permalink / raw)


I need your help in finding a proper Ada code to simulate the
behaviour of the
following lines in C:
char *bufor = (char*)malloc(100000);
fread(bufor, 1, 100000, stdin);
I need to do it from inside of the Ada code. I tried to import fread,
use the package
interfaces.c.strings etc, but in the end I always get the same
message:
raised PROGRAM_ERROR : EXCEPTION_ACCESS_VIOLATION
Any ideas?



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-02-01  8:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-20 20:21 problems with interfacing c Stoik
2011-01-20 20:56 ` Dmitry A. Kazakov
2011-01-20 21:31   ` Yannick Duchêne (Hibou57)
2011-01-20 23:03     ` Dmitry A. Kazakov
2011-01-21  0:46       ` Yannick Duchêne (Hibou57)
2011-01-21  9:33         ` Dmitry A. Kazakov
2011-01-28  0:39   ` Stoik
2011-01-28  5:24     ` Yannick Duchêne (Hibou57)
2011-01-28  9:41     ` Ludovic Brenta
2011-01-28  9:44     ` Dmitry A. Kazakov
2011-01-31 21:46       ` Stoik
2011-01-31 23:06         ` Edward Fish
2011-02-01  8:48         ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox