~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to tools/sfio/sfllen.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include        "sfhdr.h"
 
2
 
 
3
/*      Get size of a long value coded in a portable format
 
4
**
 
5
**      Written by Kiem-Phong Vo
 
6
*/
 
7
#if __STD_C
 
8
int _sfllen(Sflong_t v)
 
9
#else
 
10
int _sfllen(v)
 
11
Sflong_t        v;
 
12
#endif
 
13
{
 
14
        if(v < 0)
 
15
                v = -(v+1);
 
16
        v = (Sfulong_t)v >> SF_SBITS;
 
17
        return 1 + (v > 0 ? sfulen(v) : 0);
 
18
}