~ubuntu-branches/ubuntu/wily/morse/wily-proposed

« back to all changes in this revision

Viewing changes to .pc/05grammar/qso.d/grammar.c

  • Committer: Bazaar Package Importer
  • Author(s): Nanakos Chrysostomos
  • Date: 2010-05-19 01:04:44 UTC
  • Revision ID: james.westby@ubuntu.com-20100519010444-frth5pbu83x5gs3w
Tags: 2.1-4
* New package maintainer. (Closes: Bug#553991).
* Lintian cleaning.
* Updated S-V to 3.8.4
    - debian/copyright file is now UTF-8 encoded.
* Added co-authors to debian/copyright file.
* Added ${misc:Depends} to conrol file.
* Added debian/source/format file.
* Removed "-" from rules file because the package uses
  a static makefile.
* Bumped debhelper versioned Build-Depends to 7, and updated
  debian/compat.
* Extracted changes to upstream files to debian/patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
int
 
2
is_vowel (first_char)
 
3
     char first_char;
 
4
{
 
5
    if (
 
6
           first_char == 'A' ||
 
7
           first_char == 'E' ||
 
8
           first_char == 'I' ||
 
9
           first_char == 'O' ||
 
10
           first_char == 'U' ||
 
11
           first_char == 'a' ||
 
12
           first_char == 'e' ||
 
13
           first_char == 'i' ||
 
14
           first_char == 'o' ||
 
15
           first_char == 'u'
 
16
     )
 
17
        return (1);
 
18
    return (0);
 
19
}
 
20
 
 
21
char buffer[200];
 
22
 
 
23
char *
 
24
A_Or_An (string)
 
25
     char *string;
 
26
{
 
27
    if (is_vowel (string[0]) == 1)
 
28
        sprintf (buffer, "an %s", string);
 
29
    else
 
30
        sprintf (buffer, "a %s", string);
 
31
    return ((char *) buffer);
 
32
}