1*9785c905SSimon Glass /* 2*9785c905SSimon Glass * (C) Copyright 2000-2009 3*9785c905SSimon Glass * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4*9785c905SSimon Glass * 5*9785c905SSimon Glass * See file CREDITS for list of people who contributed to this 6*9785c905SSimon Glass * project. 7*9785c905SSimon Glass * 8*9785c905SSimon Glass * This program is free software; you can redistribute it and/or 9*9785c905SSimon Glass * modify it under the terms of the GNU General Public License as 10*9785c905SSimon Glass * published by the Free Software Foundation; either version 2 of 11*9785c905SSimon Glass * the License, or (at your option) any later version. 12*9785c905SSimon Glass * 13*9785c905SSimon Glass * This program is distributed in the hope that it will be useful, 14*9785c905SSimon Glass * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*9785c905SSimon Glass * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*9785c905SSimon Glass * GNU General Public License for more details. 17*9785c905SSimon Glass * 18*9785c905SSimon Glass * You should have received a copy of the GNU General Public License 19*9785c905SSimon Glass * along with this program; if not, write to the Free Software 20*9785c905SSimon Glass * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*9785c905SSimon Glass * MA 02111-1307 USA 22*9785c905SSimon Glass */ 23*9785c905SSimon Glass 24*9785c905SSimon Glass #ifndef __VSPRINTF_H 25*9785c905SSimon Glass #define __VSPRINTF_H 26*9785c905SSimon Glass 27*9785c905SSimon Glass ulong simple_strtoul(const char *cp, char **endp, unsigned int base); 28*9785c905SSimon Glass int strict_strtoul(const char *cp, unsigned int base, unsigned long *res); 29*9785c905SSimon Glass unsigned long long simple_strtoull(const char *cp, char **endp, 30*9785c905SSimon Glass unsigned int base); 31*9785c905SSimon Glass long simple_strtol(const char *cp, char **endp, unsigned int base); 32*9785c905SSimon Glass void panic(const char *fmt, ...) 33*9785c905SSimon Glass __attribute__ ((format (__printf__, 1, 2), noreturn)); 34*9785c905SSimon Glass int sprintf(char *buf, const char *fmt, ...) 35*9785c905SSimon Glass __attribute__ ((format (__printf__, 2, 3))); 36*9785c905SSimon Glass int vsprintf(char *buf, const char *fmt, va_list args); 37*9785c905SSimon Glass char *simple_itoa(ulong i); 38*9785c905SSimon Glass 39*9785c905SSimon Glass #endif 40