*/
/*
H E L L O . C
*/
/*
*/
/*
Basic C standard I/O from main.
*/
/*
*/
/*
*/
/***************************************************************************/
#include
#include "hello.h"
#define BUFSIZE 30
struct PARMS str =
{
2934,
9432,
213,
9432,
&str
};
/*hello.c*/
/*
*
======== main ========
*/
void main()
{
#ifdef FILEIO
int
i;
char
scanStr[BUFSIZE];
char
fileStr[BUFSIZE];
size_t
readSize;
FILE
*fptr;
#endif
/* write a string to stdout */
puts("hello world!\n");
#ifdef FILEIO
/* clear char arrays */
for (i = 0; i < BUFSIZE; i++) {
scanStr = 0 ;
/* deliberate syntax error */
fileStr = 0;
}
/* read a string from stdin */
scanf("%s", scanStr);
/* open a file on the host and write char array */
printf("Read a %d byte char array: %s \n", readSize, fileStr);
fclose(fptr);
#endif
}
;
;
Copyright 2002 by Texas Instruments Incorporated.
;
All rights reserved. Property of Texas Instruments Incorporated.
;
Restricted rights to use, duplicate or disclose this code are
;
granted through contract.
;
file name: vectors.asm
;
; "@(#) DSP/BIOS 4.80.208 12-06-02 (barracuda-l19)"
;*
;*
Copyright 2001 by Texas Instruments Incorporated.
;*
All rights reserved. Property of Texas Instruments Incorporated.
;*
Restricted rights to use, duplicate or disclose this code are
;*
granted through contract.
;*