⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scanutils.h

📁 一OCR的相关资料。.希望对研究OCR的朋友有所帮助.
💻 H
字号:
// Copyright 2006 Google Inc.// All Rights Reserved.// Author: renn//// Contains file io functions (mainly for file parsing), that might not be // available, on embedded devices, or that have an incomplete implementation // there.//// Licensed under the Apache License, Version 2.0 (the "License");// you may not use this file except in compliance with the License.// You may obtain a copy of the License at// http://www.apache.org/licenses/LICENSE-2.0// Unless required by applicable law or agreed to in writing, software// distributed under the License is distributed on an "AS IS" BASIS,// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.// See the License for the specific language governing permissions and// limitations under the License.#ifndef SCANUTILS_H#define SCANUTILS_H#ifdef EMBEDDED#include <stdint.h>#include <stddef.h>#include <stdio.h>#include <klibc/extern.h>// Attempts to parse the given file stream s as an integer of the base// 'base'. Returns the first successfully parsed integer as a uintmax_t, or// 0, if none was found.uintmax_t streamtoumax(FILE* s, int base);// Parse a file stream according to the given format. See the fscanf manpage// for more information, as this function attempts to mimic its behavior.// Note that scientific loating-point notation is not supported.int fscanf(FILE* stream, const char *format, ...);// Parse a file stream according to the given format. See the fscanf manpage// for more information, as this function attempts to mimic its behavior.// Note that scientific loating-point notation is not supported.int vfscanf(FILE* stream, const char *format, va_list ap);// Create a file at the specified path. See the creat manpage for more // information, as this function attempts to mimic its behavior.int creat(const char *pathname, mode_t mode);// Convert the specified C-String to a float. Returns the first parsed float,// or 0.0 if no floating point value could be found. Note that scientific// floating-point notation is not supported.double strtofloat(const char* s);#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -