{
    "content": [
        {
            "type": "text",
            "text": "# pam_vprompt (man)\n\n## NAME\n\npamprompt, pamvprompt - interface to conversation function\n\n## SYNOPSIS\n\n#include <security/pamext.h>\nint pamprompt(pamhandlet *pamh, int style, char response, const char *fmt, ...);\nint pamvprompt(pamhandlet *pamh, int style, char response, const char *fmt,\nvalist args);\n\n## DESCRIPTION\n\nThe pamprompt function constructs a message from the specified format string and arguments\nand passes it to the conversation function as set by the service. Upon successful return,\nresponse is set to point to a string returned from the conversation function. This string is\nallocated on heap and should be freed.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **RETURN VALUES**\n- **SEE ALSO**\n- **STANDARDS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pam_vprompt",
        "section": "",
        "mode": "man",
        "summary": "pamprompt, pamvprompt - interface to conversation function",
        "synopsis": "#include <security/pamext.h>\nint pamprompt(pamhandlet *pamh, int style, char response, const char *fmt, ...);\nint pamvprompt(pamhandlet *pamh, int style, char response, const char *fmt,\nvalist args);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "pam",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
            },
            {
                "name": "pamconv",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/pamconv/3/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "STANDARDS",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "pamprompt, pamvprompt - interface to conversation function\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "#include <security/pamext.h>\n\nint pamprompt(pamhandlet *pamh, int style, char response, const char *fmt, ...);\n\nint pamvprompt(pamhandlet *pamh, int style, char response, const char *fmt,\nvalist args);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The pamprompt function constructs a message from the specified format string and arguments\nand passes it to the conversation function as set by the service. Upon successful return,\nresponse is set to point to a string returned from the conversation function. This string is\nallocated on heap and should be freed.\n",
                "subsections": []
            },
            "RETURN VALUES": {
                "content": "PAMBUFERR\nMemory buffer error.\n\nPAMCONVERR\nConversation failure.\n\nPAMSUCCESS\nConversation succeeded, response is set.\n\nPAMSYSTEMERR\nSystem error.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "pam(7), pamconv(3)\n",
                "subsections": []
            },
            "STANDARDS": {
                "content": "The pamprompt and pamvprompt functions are Linux-PAM extensions.\n\n\n\nLinux-PAM Manual                             06/08/2020                                PAMPROMPT(3)",
                "subsections": []
            }
        }
    }
}