06-28-2016
Thank you!! It's been years since I did anything in C.
10 More Discussions You Might Find Interesting
1. Programming
Hi all,
Can anyone tell me a little about the datatype FILE, which represents stream. What does its structure look like, and in which header file is it defined and so on...
Ex :
FILE *fp ;
fp = fopen("filename", "w") ; (6 Replies)
Discussion started by: milhan
6 Replies
2. Programming
Hi,
I am trying to understand an very old C program.
....
time_t start, end;
ptr = localtime(&start);
...
fprintf(out, "%-35s 01 %5s %2s %10d 1 5 /tty/M%d/%02d %24s", buffer3, job, ver, start, mach_num,atoi(buffer), asctime(ptr));
fprintf(out, "%-35s 03 %5s %2s %10d 1 5... (9 Replies)
Discussion started by: whatisthis
9 Replies
3. Programming
I am writing some code to do analysis on the file system (HP-UX 11.11).
I am using stat(..) to get file information. My problem is that the file-size may exceed the data types defined in 'sys/stat.h' & 'sys/types.h' respectively.
Thus file-sizes in the Giga-byte range are not read correctly.... (2 Replies)
Discussion started by: ALTRUNVRSOFLN
2 Replies
4. AIX
Hello,
I get this message : "Value too large to be stored in data type" when I try to open a 3Gb file.
Can someone helps me to resolve the problem.
Thank you very much (5 Replies)
Discussion started by: limame
5 Replies
5. Shell Programming and Scripting
Hello,everyone here.
I'm coding with KSH to achieve exploring the disk space and judging whether it closes to overflow.But It seems that no one way to convert a string variable to integer.
df | read A B C D E F G H I J K L
print ${L}
Can I convert L to integer type?
Thanks for... (2 Replies)
Discussion started by: joshuaduan
2 Replies
6. Shell Programming and Scripting
I am using perl 5.8.0.
I need to check some values to see it they are floats. Our system does not have Data::Types so I can't use is_float. Is there something else that I can use? The only thing in Data is Dump.pm. I am not allowed to download anything to our system so I have to use what I have.... (3 Replies)
Discussion started by: ajgwin
3 Replies
7. SCO
Hi all,
I have this problem in one of the SCO UNIXWare 7.1.4. We have an application which is working on hundreds of machines. When we try to install the same application on a new machine, the executable/binary gives the following error and exits...
"xxx startup failure: Value too large for... (1 Reply)
Discussion started by: chava01
1 Replies
8. Programming
Hi all, this warning is driving me nuts. I use -pedantic with -Wall and -Werror so this needs to be fixed.
BUILD: GNU-Linux-x86
Any ideas?
struct sockaddr_in server_addr;
int addr_len = sizeof (server_addr);
fd = accept(link->socket_fd,
(struct sockaddr_in *)... (2 Replies)
Discussion started by: personificator
2 Replies
9. Web Development
Hi everybody,
I`m very new with PHP and Databases and I having the follow issue with prices data..
The original information is in CSV files.
The prices have formatted with commas and dots as follow:
12,300.99 -->(thousands separated by commas)
3,500.25 -->(thousands separated... (10 Replies)
Discussion started by: cgkmal
10 Replies
10. Programming
i'm using a C program and running it on a linux server, i got 2 adressess of 2 variables, and 2 addresses of 2 chars, and compared it. and got the size of a int and the size of a char.
why is a size of a int (4 bytes) bigger then the size of a char (1 byte)?
also if i do &a-&b i get 1, but if i... (30 Replies)
Discussion started by: omega666
30 Replies
sua2(1) General Commands Manual sua2(1)
Name
sua2 - Find USNO-A2.0 Catalog stars in a square on the sky
Synopsis
sua2 [options] ra dec system
Description
suac finds all of the U.S. Naval Observatory A2.0 Catalog objects in a specified region of the sky and lists their sky positions and magni-
tudes in order of brightness. Output is to standard out, unless the -w flag is set, in which case it goes to objectname.uac or search.uac.
It is a link to scat.
Options
-a list single closest catalog source -b Output B1950 (FK4) coordinates -d Sort by distance from center instead of flux -e Output ecliptic
coordinates -f Output search center for other programs -g Output galactic coordinates -h Print heading, else do not -i Print catalog object
name, not catalog number (=ua2_region_number) -j Output J2000 (FK5) coordinates -l Print center and closest star on one line -m [<bright
magnitude>] <faint magnitude> Limiting catalog magnitude(s) (default none, bright -2 if only faint is given) -n <num> Number of brightest
stars to print -o <name> Object name used to name output file -p Sort by distance from search center instead of brightness -q <years>
Equinox of output positions in years -r <radius> Search box half-width in arcsec or dd:mm:ss If negative, this is a radius; if two numbers,
first is in right ascension, second is in declination. (default is 10, that is a 20x20 arcsec box) -s Sort by right ascension instead of
flux -t Tab table output -u <num> Print X Y instead of number in front of non-tab entry -v Verbose listing of processing intermediate
results -w Write tab table output file imagename.uac -y Epoch of output positions in years
See Also
scat(1), susac(1), imuac(1), sgsc(1)
Author
Doug Mink, SAO (dmink@cfa.harvard.edu)
19 November 1999 WCS sua2(1)