Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 1996 08:53:46 -0500 (EST)
From:      "Ron G. Minnich" <rminnich@Sarnoff.COM>
To:        "Marc G. Fournier" <scrappy@hub.org>
Cc:        hackers@freebsd.org
Subject:   Re: Almost have mmap() figured, I think...
Message-ID:  <Pine.SUN.3.91.961217085229.7116A-100000@terra>
In-Reply-To: <Pine.NEB.3.95.961216200508.283F-100000@hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> The problem comes up when I try and print out the frame itself,
>using 'printf("%s\n", frame[ii]);'...the value printed out each time
>is exactly the same: <FF><D8><FF><E0> 

actually everything is right but your printf. This will print the 
pointer. to get data, e.g. the first word, ...
unsigned long something;
something = * (unsigned long *) frame[ii];
and so on.
ron

Ron Minnich                |"Failure is not an option" -- Gene Kranz
rminnich@sarnoff.com       | -- except, of course, on Microsoft products
(609)-734-3120             |
ftp://ftp.sarnoff.com/pub/mnfs/www/docs/cluster.html 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.961217085229.7116A-100000>