~ubuntu-branches/ubuntu/raring/simutrans/raring-proposed

« back to all changes in this revision

Viewing changes to utils/simstring.cc

  • Committer: Package Import Robot
  • Author(s): Ansgar Burchardt
  • Date: 2011-11-03 19:59:02 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20111103195902-uopgwf488mfctb75
Tags: 111.0-1
* New upstream release.
* debian/rules: Update get-orig-source target for new upstream release.
* Use xz compression for source and binary packages.
* Use override_* targets to simplify debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "simstring.h"
2
 
#include "../tpl/debug_helper.h"
3
2
 
4
3
#include <assert.h>
5
4
#include <string.h>
288
287
        }
289
288
        return p;
290
289
}
291
 
 
292
 
 
293
 
int count_char(const char* str, const char c)
294
 
{
295
 
        int count = 0;
296
 
        while (*str != '\0') {
297
 
                count += (*str++ == c);
298
 
        }
299
 
        return count;
300
 
}