#include "machine.h"Include dependency graph for printf.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| int | MyPutCh (int ch) |
| int | MyGetCh (void) |
| char * | MyFGetS (char *str, unsigned int size, FILE *file) |
| int | MyFPutC (int ch, FILE *file) |
| int | MyFPutS (char *str, FILE *file) |
| void | Scistring (char *str) |
| void | sciprint (char *fmt,...) |
| void | sciprint_nd (char *fmt,...) |
| int | sciprint2 (int iv, char *fmt,...) |
| size_t | MyFWrite (const void *ptr, size_t size, size_t n, FILE *file) |
| size_t | MyFRead (void *ptr, size_t size, size_t n, FILE *file) |
| void | Xputchar (c) |
| void | Xputstring (str, n) |
| void | Scisncr (str) |
| void | C2F (diary) __PARAMS((char *str |
| void diary_nnl | __PARAMS ((char *str, int *n)) |
Variables | |
| void int * | n |
| void C2F | ( | diary | ) |
| char* MyFGetS | ( | char * | str, | |
| unsigned int | size, | |||
| FILE * | file | |||
| ) |
Definition at line 41 of file printf.c.
References isterm, NULL, p, TextGetS(), and textwin.
Referenced by NotTTyRead().
00042 { 00043 char FAR *p; 00044 if (isterm (file)) 00045 { 00046 p = TextGetS (&textwin, str, size); 00047 if (p != (char FAR *) NULL) 00048 return str; 00049 return (char *) NULL; 00050 } 00051 return fgets (str, size, file); 00052 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 54 of file printf.c.
References isterm, MyPutCh(), and TextMessage().
Referenced by clear_eoline(), clear_line(), readline_win(), and user_putc().
00055 { 00056 if (isterm (file)) 00057 { 00058 MyPutCh ((BYTE) ch); 00059 TextMessage (); 00060 return ch; 00061 } 00062 return fputc (ch, file); 00063 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int MyFPutS | ( | char * | str, | |
| FILE * | file | |||
| ) |
Definition at line 65 of file printf.c.
References isterm, PutString(), TextMessage(), TextPutS(), and textwin.
Referenced by clear_line(), NotTTyRead(), readline_win(), redraw_line(), and user_puts().
00066 { 00067 if (isterm (file)) 00068 { 00069 TextPutS (&textwin, str); 00070 PutString(str); 00071 00072 TextMessage (); 00073 return (*str); /* different from Borland library */ 00074 } 00075 return fputs (str, file); 00076 }
Here is the call graph for this function:

Here is the caller graph for this function:

| size_t MyFRead | ( | void * | ptr, | |
| size_t | size, | |||
| size_t | n, | |||
| FILE * | file | |||
| ) |
Definition at line 141 of file printf.c.
References i, int, isterm, TextGetChE(), TextMessage(), and textwin.
00142 { 00143 if (isterm (file)) 00144 { 00145 int i; 00146 for (i = 0; i < (int) n; i++) 00147 ((BYTE *) ptr)[i] = TextGetChE (&textwin); 00148 TextMessage (); 00149 return n; 00150 } 00151 return fread (ptr, size, n, file); 00152 }
Here is the call graph for this function:

| size_t MyFWrite | ( | const void * | ptr, | |
| size_t | size, | |||
| size_t | n, | |||
| FILE * | file | |||
| ) |
Definition at line 128 of file printf.c.
References i, int, isterm, TextMessage(), TextPutCh(), and textwin.
00129 { 00130 if (isterm (file)) 00131 { 00132 int i; 00133 for (i = 0; i < (int) n; i++) 00134 TextPutCh (&textwin, ((BYTE *) ptr)[i]); 00135 TextMessage (); 00136 return n; 00137 } 00138 return fwrite (ptr, size, n, file); 00139 }
Here is the call graph for this function:

| int MyGetCh | ( | void | ) |
Definition at line 28 of file printf.c.
References TextPutCh(), and textwin.
Referenced by MyFPutC(), Scistring(), and Xputchar().
00029 { 00030 char Str[1]; 00031 Str[0]=ch; 00032 //PutString(Str); 00033 return TextPutCh (&textwin, (BYTE) ch); 00034 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void sciprint | ( | char * | fmt, | |
| ... | ||||
| ) |
| void sciprint_nd | ( | char * | fmt, | |
| ... | ||||
| ) |
Definition at line 97 of file printf.c.
00098 { 00099 int i, count, lstr; 00100 char buf[MAXPRINTF]; 00101 va_list args; 00102 va_start (args, fmt); 00103 00104 /* next three lines added for diary SS */ 00105 count = _vsnprintf (buf,MAXPRINTF-1, fmt, args); 00106 if (count == -1) 00107 { 00108 buf[MAXPRINTF-1]='\0'; 00109 } 00110 lstr = strlen (buf); 00111 00112 C2F (xscion) (&i); 00113 if (i == 0) 00114 { 00115 /*count = vfprintf(stdout, fmt, args ); */ 00116 printf ("%s", buf); 00117 } 00118 else 00119 { 00120 /*count = vsprintf(buf,fmt,args); SS */ 00121 TextPutS (&textwin, buf); 00122 PutString(buf); 00123 } 00124 va_end (args); 00126 }
| void Scisncr | ( | str | ) |
| void Scistring | ( | char * | str | ) |
synonym for scilab but without the
Definition at line 79 of file printf.c.
00080 { 00081 int i; 00082 C2F (xscion) (&i); 00083 if (i == 0) 00084 fprintf (stdout, "%s", str); 00085 else 00086 { 00087 TextPutS (&textwin, str); 00088 PutString(str); 00089 PutString("\n"); 00090 MyPutCh ('\n'); 00091 } 00092 }
| void Xputchar | ( | c | ) |
1.5.1