home *** CD-ROM | disk | FTP | other *** search
- /*
- ______________________________________________ afterdrc@spuddy.mew.co.uk _
- ___
- \ \
- / \
- _____/ /\ \_ f t e r d A r c
- _ \_ _____ | D e v e l o p m e n t s
- / \ / / \ \
- \ \/ / \ \
- \___/ \_/
- _________________________________________ afterdarc@digibank.demon.co.uk _
-
- */
-
- #include <stdio.h>
- #include <roslib.h>
- #include <string.h>
-
- main(int argc, char *argv[])
- {
- if (argc == 2)
- {
- char input[128];
- char command[256];
- char sysvar[32];
- char message[256];
- strcpy(message, argv[1]);
- strcpy(sysvar, argv[2]);
- strcpy(command, "Set ");
- strcat(command, sysvar);
- strcat(command, " ");
- printf("%s", message);
- scanf("%s", input);
- strcat(command, input);
- os_cli(command);
- }
- else
- {
- printf("GetStrng v1.00\nBy Tim Brown and © AfterdArc Developments, 1995\n\nSyntax:\n\n GetStrng <message> <os variable>\n");
- }
- }
-
-