source: CIVL/examples/experimental/returnNull.cvl

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 286 bytes
Line 
1/*
2 * This example is to test executeReturn() function when it has returned
3 * without a return value
4 * */
5#include<civlc.cvh>
6#include<stdio.h>
7
8int returnDouble(){
9 int a = 6;
10 if(a<5){
11 return 2*a;
12 }
13}
14
15void main(){
16 int x = returnDouble();
17 printf("Double is %d", x);
18}
Note: See TracBrowser for help on using the repository browser.