~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to common/libftoa/include/Commonftoa.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2009 NetAllied Systems GmbH
 
3
 
 
4
    This file is part of Common libftoa.
 
5
        
 
6
    Licensed under the MIT Open Source License, 
 
7
    for details please see LICENSE file or the website
 
8
    http://www.opensource.org/licenses/mit-license.php
 
9
*/
 
10
 
 
11
#ifndef __COMMON_FTOA_H__
 
12
#define __COMMON_FTOA_H__
 
13
 
 
14
#include <stdlib.h>
 
15
 
 
16
namespace Common
 
17
{
 
18
 
 
19
        /** The minimum size of the buffer, passed to ftoa.*/
 
20
        static const size_t FTOA_BUFFERSIZE = 30;
 
21
 
 
22
 
 
23
        /** Returns the number of bytes written in to the buffer.
 
24
        @param buffer The buffer the string representation of the number will be written to. Its size must be at 
 
25
        least FTOA_BUFFERSIZE.*/
 
26
        int ftoa(float f, char* buffer);
 
27
 
 
28
}
 
29
 
 
30
#endif // __COMMON_FTOA_H__