Difference between revisions of "Ret()"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
m (Text replace - "lianjaapi.h" to "lianja_api.h")
 
Line 7: Line 7:
 
==SYNOPSIS==
 
==SYNOPSIS==
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
int _ret()
 
int _ret()
Line 33: Line 33:
  
 
<code lang="c">
 
<code lang="c">
#include "lianjaapi.h"
+
#include "lianja_api.h"
  
 
lianjaapi_exec_command()
 
lianjaapi_exec_command()

Latest revision as of 08:59, 11 April 2013

PURPOSE

Return without returning any value

SYNONYM

api_ret()

SYNOPSIS

#include "lianja_api.h"
 
int	_ret()
 
<input parameters>
none
 
<output parameters>
none

DESCRIPTION

The _ret() function is used to return without returning any value. This allows for the function to be used like a command.

EXAMPLE

The following example returns without returning any value.

Example Lianja script:

exec_command("test")

Example 'C' function:

#include "lianja_api.h"
 
lianjaapi_exec_command()
{
    ret();
}

SEE ALSO

_retc(), _retclen(), _retds(), _retl(), _retnd(), _retni(), _retnl(), _reto(), _retts(), _retys()