![]() ![]() Note that if a Script is run on a file after a Template has been run on that same file, the functions in the Template can be called from the Script.įunctions can also be called which reside in an external library (for example, a Windows DLL). Note that unlike regular C, the function 'main' is not required and execution begins from the first line of the Script or Template. Full recursion is supported on custom functions. Prototypes can also be used on functions by replacing the statements with a semi-colon ' ' after the argument list. For example: char GetExtension( char filename, int &extLength )ĮxtLength = Strlen( filename ) - pos - 1 Array arguments are passed by reference if possible, or by value if not. Array arguments can be indicated using the characters '' after the argument name. For example: void OutputInt( int d )Īrguments are usually passed by value, but can be passed by reference using the '&' character before the argument name. The return type can be void or any of the supported data types. See Interface Functions, I/O Functions, String Functions, Math Functions, Tool Functions for a list of all functions.Ĭustom functions can be defined with the regular C syntax ' ( ) '. Would display "string='Apple' length='5'" in the Output tab of the Output Window. For example: Printf( "string='%s' length='%d'\n", str, Strlen( str ) ) Some functions can have a variable number of arguments. Functions are called using the typical C syntax ' ( )'. Many of the standard C functions are available, but have a uppercase first letter to differentiate them. Installing Files on Open from the RepositoryĪ large number of functions are built into 010 Editor.Using 010 Editor - Templates and Scripts. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |