Convert more stuff from #ifdef to dspwrappers: GetString.
[gnushogi.git] / gnushogi / rawdsp.c
index 328d80d..cbbfe52 100644 (file)
@@ -148,6 +148,18 @@ Raw_doRequestInputString(const char* fmt, char* buffer)
 }
 
 
+int
+Raw_GetString(char* sx)
+{
+    int eof = 0;
+    sx[0] = '\0';
+
+    while(!eof && !sx[0])
+        eof = (fgets(sx, 80, stdin) == NULL);
+    return eof;
+}
+
+
 void
 Raw_ShowNodeCnt(long NodeCnt)
 {