mttty | Multi-Threaded TTY program provided by Microsoft
kandi X-RAY | mttty Summary
kandi X-RAY | mttty Summary
Multi-Threaded Win32 TTY program provided by Microsoft, originally from 1995!. Referenced in this article: The original source code was lightly converted to compile with VS 2017. TCHARs were a quick and dirty solution to most problems, they should be converted to WCHARs, and other string functions converted as well.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mttty
mttty Key Features
mttty Examples and Code Snippets
Community Discussions
Trending Discussions on mttty
QUESTION
I'm having some problems making a gets()
function on a C code i'm doing for one of my classes. So i already have a getchar()
function but on assembly and i'm calling it from C using extern
The thing is that at the moment i'm running the code i enter a string and it doesn't show the complete string instead some characters.
This is the code i have atm: C code:
...ANSWER
Answered 2018-Sep-02 at 21:55Your C gets
implementation is broken, regardless of the asm getchar
implementation. You could debug it on a normal C implementation with a normal debugger on your desktop.
You call getchar()
twice, and only save every 2nd result.
The first result is assigned to str[0]
and checked for '\r'
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mttty
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page