codesearch.isocpp.org by Andrew Tomazos.

Enter a valid C/C++ code snippet...

Searching for `int main(`...

2489599 source files searched.

193776 matches found.

Here is a random sample of matches...


actcd19/main/e/ell/ell_0.17-1/unit/test-pem.c:137:

    }

int main(int argc, char *argv[])
{
l_test_init(&argc, &argv);


actcd19/main/v/valgrind/valgrind_3.14.0-3/none/tests/async-sigs.c:136:

    }

int main()
{
/* Restore default behaviour of SIGHUP when forked from cron. */


actcd19/main/b/boost1.67/boost1.67_1.67.0-13/libs/vmd/test/test_list_equal.cxx:11:

    #include <boost/detail/lightweight_test.hpp>

int main()
{


actcd19/main/l/ladr/ladr_0.0.200911a-2.1/apps.src/miniscope.c:31:

     *************/

int main(int argc, char **argv)
{
Plist formulas;


actcd19/main/d/dmtcp/dmtcp_2.3.1-6/src/plugin/ipc/ssh/dmtcp_ssh.cpp:128:

    }

int main(int argc, char *argv[], char *envp[])
{
int in[2], out[2], err[2];


actcd19/main/p/postgresql-11/postgresql-11_11.2-2/src/interfaces/ecpg/test/expected/thread-descriptor.c:136:

    }

int main ()
{
#ifdef ENABLE_THREAD_SAFETY


actcd19/main/h/hfst/hfst_3.15.0-1/tools/src/hfst-tagger/src/build_model_src/TaggerBuilder.cc:35:

    #else // MAIN_TEST

int main(void)
{


actcd19/main/g/gnome-terminal/gnome-terminal_3.18.3-1/src/gterminal.c:3237:

    

int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
g_type_init ();


actcd19/main/b/boost1.62/boost1.62_1.62.0+dfsg-1/libs/graph/example/copy-example.cpp:14:

    #include <boost/graph/graph_utility.hpp>

int
main()
{


actcd19/main/r/rheolef/rheolef_7.0-2/nfem/geo_element/hack_array_seq_tst.cc:36:

    using namespace std;

int main(int argc, char**argv)
{
environment distributed (argc, argv);


actcd19/main/m/mongo-c-driver/mongo-c-driver_1.14.0-1/src/libmongoc/examples/example-update.c:3:

    #include "mongoc/mongoc.h"

int
main (int argc, char **argv)
{


actcd19/main/f/frama-c/frama-c_20171101+sulfur+dfsg-2/src/plugins/aorai/tests/aorai/test_recursion4.c:26:

    void foo(){}

int main(int argc, char** argv) {
int tab[]={10,20,33,15};
int r=isPresent(tab, 4, 33);


actcd19/main/f/fflas-ffpack/fflas-ffpack_2.3.2-3/macros/CodeChunk/cuda.C:5:

    #include <cusparse.h>

int main() {
cusparseHandle_t handle = 0;
cusparseCreate( &handle );


actcd19/main/o/opa-ff/opa-ff_10.8.0.0.201+dfsg.1-1/IbaTools/stream/stream.c:207:

    extern int omp_get_num_threads();
#endif
int
main()
{


actcd19/main/g/gcc-arm-none-eabi/gcc-arm-none-eabi_7-2018-q2-5/libstdc++-v3/testsuite/27_io/objects/wchar_t/13.cc:108:

    }

int main()
{
test13();


actcd19/main/w/wcc/wcc_0.0.2+dfsg-3/src/wsh/tests/sshd/ssh.c:19:

    #include "ssh.h"

int main (int argc, char **argv, char **envp){
int ret;


actcd19/main/c/chromium/chromium_72.0.3626.121-1/third_party/protobuf/src/google/protobuf/compiler/js/embed.cc:97:

    }

int main(int argc, char *argv[]) {
std::cout << "#include "
"<google/protobuf/compiler/js/well_known_types_embed.h>\n";


actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/libcxx/test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ctor.local_days.pass.cpp:33:

    #include "test_macros.h"

int main()
{
using local_days = std::chrono::local_days;


actcd19/main/p/pyside/pyside_1.2.2+source1-3/doc/codesnippets/doc/src/snippets/explicitlysharedemployee/main.cpp:44:

    #include "employee.h"

int main()
{
{


actcd19/main/b/boost1.62/boost1.62_1.62.0+dfsg-10/libs/math/example/lexical_cast_native.cpp:60:

    #include <boost/assert.hpp>

int main ()
{
std::cout << "lexical_cast example (NOT using finite_num_facet)." << std::endl;


actcd19/main/p/piglit/piglit_0~git20180515-62ef6b0db-1/tests/glx/glx-multithread.c:111:

    }

int
main(int argc, char **argv)
{


actcd19/main/p/papi/papi_5.7.0-1/src/ctests/exec_overflow.c:93:

    }

int
main( int argc, char **argv )
{


actcd19/main/l/linux/linux_4.16.16-2/tools/testing/selftests/net/psock_fanout.c:412:

    }

int main(int argc, char **argv)
{
const int expect_hash[2][2] = { { 15, 5 }, { 20, 5 } };


actcd19/main/c/csync2/csync2_2.0-22-gce67c55-1/csync2.c:409:

    }

int main(int argc, char ** argv)
{
struct textlist *tl = 0, *t;


actcd19/main/p/pesign/pesign_0.112-4/.pc/fix_cmdline.patch/src/efikeygen.c:468:

    }

int main(int argc, char *argv[])
{
int is_ca = 0;


actcd19/main/o/openbabel/openbabel_2.4.1+dfsg-3/tools/obprop.cpp:47:

    

int main(int argc,char **argv)
{
char *program_name= argv[0];


actcd19/main/m/mpich/mpich_3.3-2/test/mpi/io/i_noncontig.c:31:

        }

int main(int argc, char **argv)
{
int *buf, i, mynod, nprocs, len, b[3];


actcd19/main/n/nasm/nasm_2.14-1/rdoff/rdf2bin.c:289:

    }

int main(int argc, char **argv)
{
rdfmodule *m;


actcd19/main/m/mpich/mpich_3.3-2/src/hwloc/tests/hwloc/cudart.c:15:

    /* check the CUDA Runtime API helpers */

int main(void)
{
hwloc_topology_t topology;


actcd19/main/f/fflas-ffpack/fflas-ffpack_2.3.2-3/tests/test-fger.C:270:

    }

int main(int argc, char** argv)
{
std::cout<<setprecision(17);


actcd19/main/x/xdg-desktop-portal-kde/xdg-desktop-portal-kde_5.14.5-1/src/xdg-desktop-portal-kde.cpp:29:

    Q_LOGGING_CATEGORY(XdgDesktopPortalKde, "xdp-kde")

int main(int argc, char *argv[])
{
QApplication a(argc, argv);


actcd19/main/f/fastnetmon/fastnetmon_1.1.3+dfsg-8.1/src/tests/snabb/ndpicallback.cpp:613:

    #endif

int main(int argc, char** argv) {
my_ndpi_struct = init_ndpi();


actcd19/main/l/llvm-toolchain-8/llvm-toolchain-8_8~+rc3-1~exp1/libcxx/test/std/containers/associative/multiset/multiset.cons/copy.pass.cpp:23:

    #include "test_allocator.h"

int main()
{
{


actcd19/main/p/petsc/petsc_3.10.3+dfsg1-5/src/snes/examples/tests/ex2.c:229:

    }

int main(int argc, char **argv)
{
AppCtx ctx;


actcd19/main/o/osmo-msc/osmo-msc_1.2.0-3/tests/db/db_test.c:204:

    }

int main()
{
printf("Testing subscriber database code.\n");


actcd19/main/k/knxd/knxd_0.14.29-3/src/tools/bcu/bcuaddrtab.cpp:156:

    

int
main (int ac, char *ag[])
{


actcd19/main/c/coccinelle/coccinelle_1.0.4.deb-4/tests/doundo.c:3:

    s8	*noevent;

int main()
{
const s8 (*queue_priority_mapping)[2];


actcd19/main/o/openturns/openturns_1.9-5/lib/test/t_LogisticFactory_std.cxx:27:

    using namespace OT::Test;

int main(int argc, char *argv[])
{
TESTPREAMBLE;


actcd19/main/r/rocksdb/rocksdb_5.17.2-3/util/dynamic_bloom_test.cc:8:

    #ifndef GFLAGS
#include <cstdio>
int main() {
fprintf(stderr, "Please install gflags to run this test... Skipping...\n");
return 0;


actcd19/main/g/gudhi/gudhi_2.3.0+dfsg-2/utilities/Persistence_representations/persistence_intervals/plot_persistence_intervals.cpp:32:

    using Persistence_intervals = Gudhi::Persistence_representations::Persistence_intervals;

int main(int argc, char** argv) {
if ((argc != 3) && (argc != 2)) {
std::cout << "This program creates a gnuplot script from a single persistence diagram file (*.pers).\n"


actcd19/main/g/gsmlib/gsmlib_1.10+20120414.gita5e5ae9a-0.3/tests/testparser.cc:59:

    }

int main(int argc, char *argv[])
{
try


actcd19/main/libr/librsb/librsb_1.2.0-rc7-6/ot.c:1:

    int main(){printf("sorry, you did not install octave, so the octave based tester is disabled\n");return 0;}


actcd19/main/q/qtbase-opensource-src/qtbase-opensource-src_5.10.1+dfsg-5/examples/dbus/remotecontrolledcar/car/main.cpp:58:

    #include <QtDBus/QDBusConnection>

int main(int argc, char *argv[])
{
QApplication app(argc, argv);


actcd19/main/g/gcc-avr/gcc-avr_5.4.0+Atmel3.6.1-2/gcc/gcc/testsuite/gcc.dg/vect/vect-floatint-conversion-1.c:32:

    }

int
main (void)
{


actcd19/main/c/cpl/cpl_7.1-3/cplcore/tests/cpl_error-test.c:53:

                                      Main
-----------------------------------------------------------------------------*/
int main(void)
{
const cpl_boolean has_func


actcd19/main/s/samhain/samhain_3.1.0-7/src/CuTestMain.c:114:

    }

int main(void)
{
#if !defined(USE_SYSTEM_MALLOC)


actcd19/main/s/strace/strace_4.26-0.2/tests/request_key.c:48:

    }

int
main(void)
{


actcd19/main/e/emscripten/emscripten_1.22.1-1/tests/unistd/io.c:8:

    #include <emscripten.h>

int main() {
EM_ASM(
FS.mkdir('/working');


actcd19/main/c/c++-annotations/c++-annotations_11.1.0-1/src/keywordsort.cc:140:

    };

int main()
{
set<string> keyword;


actcd19/main/g/gcc-avr/gcc-avr_5.4.0+Atmel3.6.1-2/gcc/gcc/testsuite/gcc.target/arm/va_list.c:14:

    } my_va_list;

int
main () {
if (sizeof (va_list) != sizeof (my_va_list))


actcd19/main/g/gauche-c-wrapper/gauche-c-wrapper_0.6.1-10/libffi/testsuite/libffi.call/cls_multi_sshortchar.c:40:

    				  signed char, signed short);

int main (void)
{
ffi_cif cif;


actcd19/main/s/seqan/seqan_1.4.2+dfsg-3/core/demos/align_gaps_clipping.cpp:8:

    #include <seqan/align.h>

int main()
{
typedef seqan::Position<seqan::Gaps<seqan::CharString> >::Type TPos;


actcd19/main/c/codec2/codec2_0.8.1-2/unittest/tquant.c:43:

    int test_energy_quant(int levels, float max_error_dB);

int main() {
quantise_init();
test_Wo_quant();


actcd19/main/r/rheolef/rheolef_7.0-2/skit/ptst2/csr_trans_tst.cc:24:

    using namespace rheolef;
using namespace std;
int main(int argc, char**argv) {
environment rheolef(argc, argv);
csr<Float> a;


actcd19/main/a/apcalc/apcalc_2.12.7.2-2/have_rusage.c:45:

    #include <sys/resource.h>

int
main(void)
{


actcd19/main/s/sudo/sudo_1.8.27-1/lib/util/regress/vsyslog/vsyslog_test.c:40:

    #include "sudo_util.h"

__dso_public int main(int argc, char *argv[]);

/*


actcd19/non-free/w/wap-wml-tools/wap-wml-tools_0.0.4-7/.pc/fix-rdf-parser.diff/rdfwml/rdfwml.c:110:

    }

int main(int argc, char **argv)
{
xmlDocPtr rdf;


actcd19/main/i/infernal/infernal_1.1.2-2/easel/esl_msaweight.c:600:

    #include "esl_msaweight.h"

int
main(int argc, char **argv)
{


actcd19/main/g/gcc-avr/gcc-avr_5.4.0+Atmel3.6.1-2/gcc/libstdc++-v3/testsuite/27_io/basic_ostream/inserters_character/wchar_t/11095-oe.cc:41:

    }

int main()
{
test02();


actcd19/main/i/ion/ion_3.2.1+dfsg-1.1/bssp/udp/udpbsi.c:101:

    	char	*endpointSpec = (char *) a1;
#else
int main(int argc, char *argv[])
{
char *endpointSpec = (argc > 1 ? argv[1] : NULL);


actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/compiler-rt/test/lsan/TestCases/default_options.cc:9:

    }

int main() {
return 0;
}


actcd19/main/libf/libfabric/libfabric_1.6.2-3/util/strerror.c:47:

    }

int main(int argc, char *argv[])
{
char *endptr;


actcd19/main/libr/libreoffice/libreoffice_6.0.6~rc1-1/compilerplugins/clang/test/loopvartoosmall.cxx:14:

    std::int32_t size() { return 1; }

int main() {
for (std::int16_t i = 0; i < size(); ++i) {} // expected-error {{[loplugin:loopvartoosmall]}}
for (std::int16_t i = 0; i <= size(); ++i) {} // expected-error {{[loplugin:loopvartoosmall]}}


actcd19/main/libm/libminc/libminc_2.4.03-2/ezminc/examples/volume_avg.cpp:36:

    }

int main(int argc,char **argv)
{
int clobber=0;


actcd19/main/e/ent/ent_1.2debian-2/.pc/totalcount.patch/ent.c:100:

    /*  Main program  */

int main(int argc, char *argv[])
{
int i, oc, opt;


actcd19/main/k/kdepimlibs/kdepimlibs_4.14.10-10/akonadi/contact/tests/emailaddressselectiondialogtest.cpp:28:

    #include <klocalizedstring.h>

int main(int argc, char **argv)
{
KAboutData aboutData("emailaddressselectiondialogtest", 0, ki18n("Test EmailAddressSelectionDialog"), "0.1");


actcd19/main/g/gcc-arm-none-eabi/gcc-arm-none-eabi_7-2018-q2-6/gcc/testsuite/g++.dg/cpp1z/decomp6.C:16:

    };

int
main ()
{


actcd19/main/s/sqlite3/sqlite3_3.27.2-1/test/atrc.c:118:

    **   (7) Rollback the transaction
*/
int main(int argc, char **argv){
sqlite3 *db;
int rc;


actcd19/main/s/swi-prolog/swi-prolog_7.2.3+dfsg-1/src/pl-main.c:101:

    

int
main(int argc, char **argv)
{


actcd19/main/d/dlib/dlib_19.10-3/examples/timer_ex.cpp:33:

    // ----------------------------------------------------------------------------------------

int main()
{
timer_example e;


actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-8/libcxx/test/libcxx/utilities/function.objects/func.require/invoke.pass.cpp:35:

    };

int main()
{
static_assert(sizeof(std::__invoke(&Type::f1, std::declval<Type >())) == 1, "");


actcd19/main/s/simbody/simbody_3.6.1+dfsg-6/examples/ParameterConstrainedOptimization.cpp:71:

    
/* adapted from driver1.f of Lbfgsb.2.1.tar.gz */
int main() {
int n = NUMBER_OF_PARAMETERS;


actcd19/main/f/folks/folks_0.11.4-1/tests/eds/link-personas.c:3301:

    

int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
g_type_init ();


actcd19/main/g/gnunet/gnunet_0.10.1-5.1/src/namecache/test_namecache_api_cache_block.c:224:

    

int
main (int argc, char *argv[])
{


actcd19/main/t/trilinos/trilinos_12.12.1-7/packages/shylu/tacho/deprecated/test/main_debug_qthread.cpp:24:

    int g_funct_counter = 0;

int main(int argc, char *argv[]) {
int r_val = 0;


actcd19/main/g/ggcov/ggcov_0.9-21/src/mangletest.c:24:

    const char *argv0;

int
main(int argc, char **argv)
{


actcd19/main/s/staden/staden_2.0.0+b11-4/find_renz/find_renz.c:168:

    }

int main(int argc, char **argv) {
int ret = 0;
int vp = 0;


actcd19/main/p/pocketsphinx/pocketsphinx_0.8+5prealpha+1-2/test/unit/test_state_align.c:37:

    

int
main(int argc, char *argv[])
{


actcd19/main/s/stacks/stacks_2.2+dfsg-1/src/phasedstacks.cc:52:

    map<int, int>    pop_cnts;

int main (int argc, char* argv[]) {
IF_NDEBUG_TRY


actcd19/main/g/globus-gssapi-gsi/globus-gssapi-gsi_14.10-1/test/gssapi_thread_test.c:55:

    

int
main()
{


actcd19/main/c/cbmc/cbmc_5.10-5/regression/cbmc/Pointer_Arithmetic7/main.c:6:

    }

int main ()
{
char dummy[10];


actcd19/main/d/direwolf/direwolf_1.4+dfsg-1/igate.c:201:

    /* For unit testing. */

int main (int argc, char *argv[])
{
struct audio_s audio_config;


actcd19/main/m/mesa/mesa_18.3.4-2/src/intel/tools/i965_disasm.c:98:

    }

int main(int argc, char *argv[])
{
FILE *fp = NULL;


actcd19/main/p/pyside2/pyside2_5.11.2-3/sources/pyside2/doc/codesnippets/doc/src/snippets/qstyleplugin/main.cpp:102:

    //! [2]

int main(int argc, char *argv[])
{
QApplication app(argc, argv);


actcd19/main/v/valgrind/valgrind_3.14.0-3/exp-sgcheck/tests/globalerr.c:7:

    static short b[7];

int main ( void )
{
int i;


actcd19/main/g/gcc-avr/gcc-avr_5.4.0+Atmel3.6.1-2/gcc/gcc/testsuite/gcc.target/i386/isa-6.c:7:

    extern void abort (void);

int
main ()
{


actcd19/main/g/givaro/givaro_4.0.4-2/examples/Integer/ModularSquareRoot.C:32:

    // by Menezes, van Oorschot, Vanstone

int main(int argc, char** argv)
{
Integer a(argv[1]), n(argv[2]);


actcd19/main/r/re2c/re2c_1.1.1-1/test/unicode_group_Sk.8--encoding-policy(fail).c:271:

    }

int main ()
{
YYCTYPE * buffer_Sk = new YYCTYPE [464];


actcd19/main/n/netcdf-cxx/netcdf-cxx_4.3.0+ds-7/cxx4/test_att.cpp:17:

    using namespace netCDF::exceptions;

int main()
{
try


actcd19/main/m/madness/madness_0.10.1~gite4aa500e-3/src/madness/mra/testproj.cc:113:

    

int main(int argc, char**argv) {
initialize(argc,argv);
World world(SafeMPI::COMM_WORLD);


actcd19/main/s/simpleitk/simpleitk_1.0.1-3/Examples/Segmentation/NeighborhoodConnectedImageFilter.cxx:34:

    namespace sitk = itk::simple;

int main( int argc, char *argv[])
{


actcd19/main/y/yapet/yapet_2.3-1/libyacurs/tests/ui-non-interactive/pack9.cc:133:

    }

int main() {
// test will not be run if stdout or stdin is not a tty.
if (isatty(STDOUT_FILENO) != 1 || isatty(STDIN_FILENO) != 1) exit(77);


actcd19/main/s/spooles/spooles_2.2-14/ETree/drivers/testMS.c:7:

    
/*--------------------------------------------------------------------*/
int
main ( int argc, char *argv[] )
/*


actcd19/main/p/python-shogun/python-shogun_3.2.0-5.2/cmake/CheckCXX11Features/cxx11-test-atomic.cpp:3:

    #include <atomic>

int main()
{
volatile std::atomic<int> x;


actcd19/main/c/cbmc/cbmc_5.6-1/regression/cpp/ModeC2/main.cpp:33:

    using SOME::somef;

int main()
{
f(int(1));


actcd19/main/c/cpl-plugin-xshoo/cpl-plugin-xshoo_3.2.0+dfsg-1/xsh/tests/test-xsh_create_master_dark.c:72:

    /*--------------------------------------------------------------------------*/

int main(void)
{
xsh_instrument* instrument = NULL;


actcd19/main/g/gcc-arm-none-eabi/gcc-arm-none-eabi_7-2018-q2-6/gcc/testsuite/g++.old-deja/g++.jason/init2.C:7:

    static const int foo [] = { i, j };
int i = 5, j = 42;
int main()
{
return foo[1] != 42;


actcd19/main/libu/libuser/libuser_0.62~dfsg-0.1/apps/lpasswd.c:32:

    #include "apputil.h"

int
main(int argc, const char **argv)
{


actcd19/main/q/qtdeclarative-opensource-src/qtdeclarative-opensource-src_5.11.3-4/tools/qmlmin/main.cpp:669:

    QT_END_NAMESPACE

int main(int argc, char **argv)
{
return QT_PREPEND_NAMESPACE(runQmlmin(argc, argv));


actcd19/main/k/kdepim4/kdepim4_4.14.10-7/messagecomposer/tests/testcomposerlineedit.cpp:29:

    using namespace MessageComposer;

int main(int argc, char **argv)
{
KCmdLineArgs::init( argc, argv, "testcomposerlineedit", 0, ki18n("ComposerLineEdit"), "1.0" , ki18n("composerlineedit test app"));