Search Results

Search: Posts Made By: santosh_sugur
Forum: Programming 10-15-2010
7,712
Posted By santosh_sugur
It's the standard stuff. Ubuntu 8.04, Linux...
It's the standard stuff. Ubuntu 8.04, Linux kernel version 2.6.24-28. gcc version 4.2.3
Forum: Programming 10-15-2010
7,712
Posted By santosh_sugur
May be it's my compiler that's over optimizing...
May be it's my compiler that's over optimizing space usage, I don't know. I've moved ahead.. but it sucks to not know where/how I was screwing up.
Forum: Programming 10-15-2010
7,712
Posted By santosh_sugur
Sure, I was wondering what was wrong in that...
Sure, I was wondering what was wrong in that isolated small piece of code that was causing buffer overflows..
Forum: Programming 10-15-2010
7,712
Posted By santosh_sugur
If I initialize the entire array xsubi[3] I do...
If I initialize the entire array xsubi[3] I do not have to move its declaration outside main.
So I think having a huge array but not initializing it completely was having its contents over written...
Forum: Programming 10-15-2010
7,712
Posted By santosh_sugur
@fpmurphy - Moving unsigned short xsubi[3];...
@fpmurphy - Moving

unsigned short xsubi[3];

outside solves my problem!

Thanks for all replies. This is the first time i'm using erand48, but after reading the man page I felt that you do...
Forum: Programming 10-15-2010
7,712
Posted By santosh_sugur
Question about erand48 usage
Hi,

Following is the trimmed down version of the code I'm using to generate a set of random numbers using erand48


#include <stdio.h>
#include <stdlib.h>
#include <math.h>

main()
{
...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 02:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy