Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Oddities...
@ 1999-11-10  5:00 John
  1999-11-10  5:00 ` Oddities Martin Sinot
  0 siblings, 1 reply; 2+ messages in thread
From: John @ 1999-11-10  5:00 UTC (permalink / 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'.



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

end of thread, other threads:[~1999-11-10  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-10  5:00 Oddities John
1999-11-10  5:00 ` Oddities Martin Sinot

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