ROSE 0.11.145.192
rose_getline.h
1#ifndef Rose_getline_H
2#define Rose_getline_H
3
4#include "rosedll.h"
5#include <istream>
6#include <stdio.h>
7#include <string>
8
9#ifdef _MSC_VER
10 #include <windows.h>
11 #undef max
12 typedef LONG_PTR ssize_t;
13#else
14 #include <unistd.h>
15#endif
16
43ROSE_UTIL_API ssize_t rose_getline(char **lineptr, size_t *n, FILE *stream);
44ROSE_UTIL_API ssize_t rose_getline(char **lineptr, size_t *n, std::istream &stream);
54ROSE_UTIL_API std::string rose_getline(FILE *stream);
55ROSE_UTIL_API std::string rose_getline(std::istream &stream);
58#endif