From: John <plastic@no_spam.oh.verio.com>
Subject: Oddities...
Date: 1999/11/10 [thread overview]
Message-ID: <MPG.1292ced3190663a5989695@oh.news.verio.net> (raw)
I was helping a friend on his intro to c course and I got
curious as to what it would do on my alpha. Why does this
code.. give unaligned traps, on argv[0-2]??
#include <stdio.h> // Standard Sheeet.
// World Domination?? FREE WODKA!!
int I;// one lame var..
main(int argc, int *argv[])
{
if(argc==0){
printf("Usage: %s values\n", argv[1]);
return(1);
}
for(I=0; I<argc; I++){
printf(" argv[%d]: %s\n\n", I, argv[I]);
}
printf("The following are the results.\n");
for(I=0; I<argc; I++){
if(*argv[I]>101)
[...else if's down to zero...]
--
Please reply via USENET and Mail.
plastic(at)oh(dot)verio(dot)com
`If you cannot say anything nice.. say it on USENET'.
next reply other threads:[~1999-11-10 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-10 5:00 John [this message]
1999-11-10 5:00 ` Oddities Martin Sinot
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox