~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/plugins/scriptedwizard/resources/staticlib/files/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// The functions contained in this file are pretty dummy
 
2
// and are included only as a placeholder. Nevertheless,
 
3
// they *will* get included in the static library if you
 
4
// don't remove them :)
 
5
// 
 
6
// Obviously, you 'll have to write yourself the super-duper
 
7
// functions to include in the resulting library...
 
8
// Also, it's not necessary to write every function in this file.
 
9
// Feel free to add more files in this project. They will be
 
10
// included in the resulting library.
 
11
 
 
12
// A function adding two integers and returning the result
 
13
int SampleAddInt(int i1, int i2)
 
14
{
 
15
    return i1 + i2;
 
16
}
 
17
 
 
18
// A function doing nothing ;)
 
19
void SampleFunction1()
 
20
{
 
21
    // insert code here
 
22
}
 
23
 
 
24
// A function always returning zero
 
25
int SampleFunction2()
 
26
{
 
27
    // insert code here
 
28
    
 
29
    return 0;
 
30
}