The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk Shell Script error : "Syntax Error : `Split' unexpected Herry UNIX for Dummies Questions & Answers 2 03-17-2008 11:16 AM
error reading sections error at install doelman SUN Solaris 2 02-05-2007 12:21 PM
Error: Internal system error: Unable to initialize standard output file firkus UNIX for Dummies Questions & Answers 2 10-25-2005 04:23 PM
stty: : Not a typewriter yls177 UNIX for Dummies Questions & Answers 4 11-06-2002 09:08 AM
stty: tcgetattr: Not a typewriter Trusevich Shell Programming and Scripting 1 01-17-2002 02:42 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-20-2006
jxh461 jxh461 is offline
Registered User
  
 

Join Date: Jun 2002
Posts: 49
not a typewriter error

I am getting the error "not a typewriter" when my program invokes the
sscanf function. What does this error imply and how can I get past it ?

Thanks in advance.
  #2 (permalink)  
Old 01-20-2006
linuxpenguin's Avatar
linuxpenguin linuxpenguin is offline Forum Advisor  
Registered User
  
 

Join Date: May 2002
Location: India
Posts: 295
check this out
http://c-faq.com/stdio/printferrno.html

I got this from google. It appears that something is wrong with the IO. insufficient permissions probably

sscanf, did you say? can you send the sscanf line and the way you have defined the variables used in your sscanf statement.
  #3 (permalink)  
Old 01-23-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,800
C functions that write to a device or a file return the error
ENOTTY - the error responsible for 'Not a typewriter'.

sscanf reads data. It does return that error number.

errno, once set by an error, is left unchanged until another error happens.
That means if printf posted the error, but you checked the error later, right
after the sscanf() call, it would look to you like sscanf() failed.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0