$49 GRAYBYTE WORDPRESS FILE MANAGER $29

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/lib64/python2.7/Demo/embed/

HOME
Current File : /usr/lib64/python2.7/Demo/embed//loop.c
/* Simple program that repeatedly calls Py_Initialize(), does something, and
   then calls Py_Finalize().  This should help finding leaks related to
   initialization. */

#include "Python.h"

main(int argc, char **argv)
{
    int count = -1;
    char *command;

    if (argc < 2 || argc > 3) {
        fprintf(stderr, "usage: loop <python-command> [count]\n");
        exit(2);
    }
    command = argv[1];

    if (argc == 3) {
        count = atoi(argv[2]);
    }

    Py_SetProgramName(argv[0]);

    /* uncomment this if you don't want to load site.py */
    /* Py_NoSiteFlag = 1; */

    while (count == -1 || --count >= 0 ) {
        Py_Initialize();
        PyRun_SimpleString(command);
        Py_Finalize();
    }
    return 0;
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.26 PM
root / root
0755
Makefile
1.128 KB
20 Apr 2020 4.13 AM
root / root
0644
README
0.803 KB
20 Apr 2020 4.13 AM
root / root
0644
demo.c
2.132 KB
20 Apr 2020 4.13 AM
root / root
0644
importexc.c
0.249 KB
20 Apr 2020 4.13 AM
root / root
0644
loop.c
0.723 KB
20 Apr 2020 4.13 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF