-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstring.c
More file actions
69 lines (52 loc) · 1.29 KB
/
string.c
File metadata and controls
69 lines (52 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* -MODULE----------------------------------------------------------------------
RapidBATCH
Copyright (C) 2008, 2009 by Phorward Software Technologies, Jan Max Meyer
http://www.phorward-software.com ++ mail@phorward-software.com
File: string.c
Author: Jan Max Meyer
Andreas Harbecke
Usage: String modification functions
----------------------------------------------------------------------------- */
/*
* Includes
*/
/* #define __WITH_TRACE */
#include "rb_global.h"
/*
* Global variables
*/
/*
* Functions
*/
RB_FCT( print )
{
/*RBAUTOIMPORT procedure print v+*/
/*RBDOC
%%procedure:en
print( output^1^ [, output^n^ ] )
%%procedure:ge
print( ausgabe^1^ [, ausgabe^n^] )
%%desc:en
Outputs expressions to stdout.\n
Each expression '''output''' will be in a single new line each.
%%desc:ge
Jeder Ausdruck '''ausgabe''' wird in jeweils in einer einzelnen Zeile ausgegeben.
%%parm:en
output An arbitrary expression to be printed.
%%parm:ge
output Ein beliebiger Ausdruck, der ausgegeben werden soll.
%%notice:en
%%notice:ge
RBDOC*/
char* str;
int i;
PROC( "print" );
RB_FCT_DUMP_PARMS();
for( i = 0; i < RB_FCT_PARM_COUNT(); i++ )
{
str = pstrget( RB_PARM_VAL_GET_STR( RB_FCT_PARM_ACCESS( i ) ) );
VARS( "str", "%s", str );
printf( "%s\n", str );
}
RETURN( 0 );
}