diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:12:55 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:12:55 +0200 |
commit | 7f6387b59ae1b5d642b0d05afbb14cab07061a9a (patch) | |
tree | d09f6f4674163b6a57d8805408877b05294f6931 /README.STREAMS | |
parent | 3f72c77ce47ee0906905b83161d9c1d24e425d89 (diff) | |
download | php-git-7f6387b59ae1b5d642b0d05afbb14cab07061a9a.tar.gz |
Trim trailing whitespace in source code files
Diffstat (limited to 'README.STREAMS')
-rw-r--r-- | README.STREAMS | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/README.STREAMS b/README.STREAMS index e95950bde0..99779d60a4 100644 --- a/README.STREAMS +++ b/README.STREAMS @@ -28,7 +28,7 @@ The main functions are: PHPAPI size_t php_stream_read(php_stream * stream, char * buf, size_t count); PHPAPI size_t php_stream_write(php_stream * stream, const char * buf, size_t count); -PHPAPI size_t php_stream_printf(php_stream * stream, +PHPAPI size_t php_stream_printf(php_stream * stream, const char * fmt, ...); PHPAPI int php_stream_eof(php_stream * stream); PHPAPI int php_stream_getc(php_stream * stream); @@ -63,7 +63,7 @@ Where: file/URL, use this option to arrange for the stream to be copied (if needed) into a stream that can be seek()ed. - + opened_path is used to return the path of the actual file opened, but if you used STREAM_MUST_SEEK, may not be valid. You are responsible for efree()ing opened_path. opened_path may be (and usually @@ -95,7 +95,7 @@ PHPAPI php_stream *php_stream_sock_open_host(const char *host, unsigned short po PHPAPI php_stream *php_stream_sock_open_unix(const char *path, int persistent, struct timeval *timeout); Open a UNIX domain socket. - + Stream Utilities ================ @@ -246,7 +246,7 @@ PHPAPI php_stream * php_stream_fopen(const char * filename, const char * mode) { FILE * fp = fopen(filename, mode); php_stream * ret; - + if (fp) { ret = php_stream_alloc(&php_stream_stdio_ops, fp, 0, 0, mode); if (ret) @@ -347,7 +347,7 @@ static size_t php_mysqlop_read(php_stream * stream, char * buf, size_t count) else return 0; } - + /* pull out some data from the stream and put it in buf */ ... mysql_fetch_row(state->result) ... /* we could do something strange, like format the data as XML here, |