Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix poptFreeContext() return type in the man page #125

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions popt.3
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ popt \- Parse command line options
.BI " const struct poptOption * " options ,
.BI " unsigned int " flags );
.sp
.BI "void poptFreeContext(poptContext " con );
.BI "poptContext poptFreeContext(poptContext " con );
.sp
.BI "void poptResetContext(poptContext " con );
.sp
Expand Down Expand Up @@ -350,14 +350,14 @@ When argument processing is complete, the process should free the
.BR poptContext " as it contains dynamically allocated components. The "
.BR poptFreeContext() " function takes a "
.BR poptContext " as its sole argument and frees the resources the "
context is using.
context is using. It always returns NULL for convenience.
.sp
.RB "Here are the prototypes of both " poptResetContext() " and "
.BR poptFreeContext() :
.sp
.nf
.B #include <popt.h>
.BI "void poptFreeContext(poptContext " con ");"
.BI "poptContext poptFreeContext(poptContext " con ");"
.BI "void poptResetContext(poptContext " con ");"
.fi
.sp
Expand Down