# 
# Copyright(C) 1996, 1997 Network Flight Recorder, Inc. 
# All rights reserved. 
#       
# Use and distribution of this software and its source code 
# are governed by the terms and conditions of the 
# Network Flight Recorder Software License ("LICENSE.TXT") 
# 
 


func foo {
	$a = strcat( "1234", 5, "6789", "\n" );
	return($a);
}


echo( foo() );

func fooa {
    $a = substr( "abcdefghijklmnopqrstuvwxyz", $1, $2 );
    return( strcat( "substr of \"abcdefghijklmnopqrstuvwxyz\",", $1, ",", $2, " =>", $a, "\n" ));
}

echo( fooa(10, 6 ) );
echo( fooa(20, 6 ) );
echo( fooa(25, 6 ) );
echo( fooa(30, 6 ) );
echo( fooa(-2, 6 ) );

func foob {
	return ( index( "big bad wolf", "bad" ) );
}

echo( "index( \"big bad wolf\", \"bad\" ) => ", foob(), "\n" );

list = [ 987, 65, 4 ];
echo( "List: ", list, " Try strcat(list) a list: ", strcat(list), "\n" );

list = [ "one ", "two ", "three ", 1, 2, 3 ];
echo( "List: ", list, " Try strcat(list) a list: ", strcat(list), "\n" );

echo ( "typeof biglist: ", typeof(biglist), "\n" );

biglist = listadd( list, [ "ain't this ", "sweet" ] );

echo ( "typeof biglist: ", typeof(biglist), "\n" );
echo ( "typeof(typeof(biglist)): ", typeof(typeof(biglist)), "\n" );
echo ( "BigList: ", biglist, "\n" );

echo ( "typeof (biglist, list): ", typeof(biglist, list), "\n" );

echo ( "typeof(typeof (biglist, list)): ", typeof(typeof(biglist, list)), "\n" );

echo ( "strcat( typeof(biglist), typeof(typeof(biglist)) ) =>",
	strcat( typeof(biglist), typeof(typeof(biglist)) ), "\n" );
