执行处理以的argc = 0 [英] executing a process with argc=0

查看:260
本文介绍了执行处理以的argc = 0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以执行一个过程,其的argc = 0?我需要执行一个程序,但其ARGC等于0,这是非常重要的是有没有办法做到这一点?
我试图把2 ^ 32参数在命令行,使其看起来好像ARGC = 0,但有一个最大限制的参数个数。

Is it possible to execute a process whose argc = 0? I need to execute a program but it is extremely important for its argc to be equal to 0. Is there a way to do that? I tried to put 2^32 arguments in the command line so that it appears as if argc = 0 but there is a maximum limit to the number of arguments.

推荐答案

您可以编写调用 EXEC 直接;它允许您指定命令行参数(包括程序名),并缺乏。

You can write a program that calls exec directly; that allows you to specify the command-line arguments (including the program name) and lack thereof.

这篇关于执行处理以的argc = 0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆