Repository navigation
Conversation
It was printing only the first character. https://devblogs.microsoft.com/oldnewthing/20190830-00/?p=102823 "If you want your code to work both on runtimes that use the Windows classic printf rules as well as those that use C standard printf rules, you can limit yourself to %hs for narrow strings and %ls for wide strings, and you’ll get consistent results regardless of whether the format string was passed to sprintf or wsprintf."
Contributor
Author
|
(It probably should exit when hid_open returns NULL, also, or it produces SIGSEGV when the device isn't plugged in. Confusing for beginners like me.) |
Contributor
Author
|
Also apparently you can't output with |
Member
|
I guess for beginners the hidtest would be a better sample and it was updated/improved over time a lot. I you want to improve sample in the README (e.g. replace |
Contributor
Author
|
@Youw Yeah, I'm just new to this and not sure of the conventions, but I'll try. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I finally got it running, but it was printing only the first character. %ls is for wide strings and works.
https://devblogs.microsoft.com/oldnewthing/20190830-00/?p=102823
"If you want your code to work both on runtimes that use the Windows classic printf rules as well as those that use C standard printf rules, you can limit yourself to %hs for narrow strings and %ls for wide strings, and you’ll get consistent results regardless of whether the format string was passed to sprintf or wsprintf."