home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsm / newcmnds / Srcs / c / EchoC next >
Encoding:
Text File  |  1995-08-27  |  871 b   |  38 lines

  1. /*
  2.  ______________________________________________ afterdrc@spuddy.mew.co.uk _
  3.           ___
  4.           \  \                                                           
  5.           /   \      
  6.     _____/ /\  \_  f t e r d A r c
  7.   _ \_   _____   |  D e v e l o p m e n t s
  8.  / \  / /     \  \  
  9.  \  \/ /       \  \           
  10.   \___/         \_/  
  11.  _________________________________________ afterdarc@digibank.demon.co.uk _
  12.  
  13. */
  14.  
  15. #include <stdio.h>
  16. #include <roslib.h>
  17. #include <string.h>
  18.  
  19. main(int argc, char *argv[])
  20. {
  21.   if (argc == 2)
  22.   {
  23.     char colourtx[2];
  24.     char text[256];
  25.     int colour;
  26.     strcpy(colourtx, argv[1]);
  27.     strcpy(text, argv[2]);
  28.     colour = atoi(colourtx);
  29.     os_colour(colour);
  30.     printf("%s\n", text);
  31.   }
  32.   else
  33.   {
  34.     printf("EchoC v1.00\nBy Tim Brown and © AfterdArc Developments, 1995\n\nSyntax:\n\n    EchoC <colour no.> <text>\n");
  35.   }
  36. }
  37.  
  38.