File: deffn.bas

package info (click to toggle)
bwbasic 2.20pl2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,204 kB
  • ctags: 1,248
  • sloc: ansic: 21,002; makefile: 116
file content (7 lines) | stat: -rw-r--r-- 240 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
10 REM ------------------------------------------ 
20 PRINT "DEFFN.BAS -- Test DEF FN Statement" 
30 DEF fnadd( x, y ) = x + y 
40 PRINT fnadd( 2, 3 ) 
50 DEF fnjoin$( a$, b$ ) = a$ + b$ 
60 PRINT fnjoin$( chr$( &h43 ), "orrect" ) 
70 END