Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
23
Task/Copy-a-string/C/copy-a-string-3.c
Normal file
23
Task/Copy-a-string/C/copy-a-string-3.c
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include <gadget/gadget.h>
|
||||
|
||||
LIB_GADGET_START
|
||||
|
||||
Main
|
||||
String v, w = "this message is a message";
|
||||
|
||||
Let( v, "Hello world!");
|
||||
Print "v = %s\nw = %s\n\n", v,w;
|
||||
|
||||
Get_fn_let( v, Upper(w) );
|
||||
|
||||
Print "v = %s\nw = %s\n\n", v,w;
|
||||
|
||||
Stack{
|
||||
Store ( v, Str_tran_last( Upper(w), "MESSAGE", "PROOF" ) );
|
||||
}Stack_off;
|
||||
|
||||
Print "v = %s\nw = %s\n\n", v,w;
|
||||
|
||||
Free secure v, w;
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue