A89: More TILinux Questions


[Prev][Next][Index][Thread]

A89: More TILinux Questions




Still trying to get the send to work... anyone have an idea on how to fix
this guy to work (it's in C):

{

	error = 0;

	if (strcmp (command,"send") == 0)
		printf ("%s\n","invalid repertory. what do you want to send?");
	else
	{
		if (command[2]  == ' ')
		{
			namestr = strstr (command," ") + 1;
			if (SymFind (strcpy (TIOSname + 1, namestr) + strlen (namestr)) ==
SYM_ENTRY)	// checks if file exists
			{
				TRY
					sendcalc (strcpy (TIOSname + 1, namestr) + strlen (namestr));	// then
if it exists, send file
				ONERR
				ENDTRY
				printf ("%s %s %s\n", "file:",namestr,"sent");
			}
			else
				printf ("%s\n","invalid repertory");
		}
		else
				error = 1;
	}
	strcpy (command,"");
}




References: