Skip to content

Fix[ntcs_processutil.cpp]: handle EOF (-1) rc - #413

Open
678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:patch-34
Open

Fix[ntcs_processutil.cpp]: handle EOF (-1) rc#413
678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:patch-34

Conversation

@678098

@678098 678098 commented May 14, 2026

Copy link
Copy Markdown
Contributor

No description provided.

&lrs,
&drs,
&dr);
if (rc != 0) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fscanf might return EOF return code https://cplusplus.com/reference/cstdio/fscanf/

EOF is typically -1 and passes this check
https://cplusplus.com/reference/cstdio/EOF/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant