Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT C Coding Standard
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT C Coding Standard
2 Rules
Rule 09. Input Output (FIO)
FIO40-C. Reset strings on fgets() or fgetws() failure
Page Information
Title:
FIO40-C. Reset strings on fgets() or fgetws() failure
Author:
Justin Pincar
Jun 12, 2007
Last Changed by:
David Svoboda
May 06, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/JdYxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (1)
Page:
CC. Undefined Behavior
Android (1)
Page:
Unknown Applicability (C Rules/Recomendations)
Hierarchy
Parent Page
Page:
Rule 09. Input Output (FIO)
Labels
Global Labels (11)
char-strings
nptc
rose-possible
fio
error-handling
exceptions
android-unknown
input
rule
nptc-complexity
in-cpp
Recent Changes
Time
Editor
May 06, 2025 10:42
David Svoboda
View Changes
May 05, 2025 09:06
Caden Milne
View Changes
REM Cost Reform
Mar 27, 2025 16:37
Caden Milne
View Changes
Identify undefined behavior
Dec 12, 2024 01:24
Swasti Shrivastava
View Changes
Dec 06, 2024 06:53
Swasti Shrivastava
View Page History
Outgoing Links
External Links (8)
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/display/c/Polyspace+Bug…
https://wiki.sei.cmu.edu/confluence/display/cplusplus/PVS-S…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://pvs-studio.com/en/docs/warnings/v1024/
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.mathworks.com/help/bugfinder/ref/certcrulefio40…
SEI CERT C Coding Standard (15)
Page:
LDRA
Page:
Helix QAC_V
Home page:
SEI CERT C Coding Standard
Page:
LDRA_V
Page:
BB. Definitions
Page:
Parasoft
Page:
Helix QAC
Page:
CodeSonar_V
Page:
Cppcheck Premium_V
Page:
Polyspace Bug Finder_V
Page:
Cppcheck Premium
Page:
CC. Undefined Behavior
Page:
CodeSonar
Page:
PVS-Studio_V
Page:
Parasoft_V
Overview
Content Tools
{"serverDuration": 80, "requestCorrelationId": "c8382e16c9514cec"}