Deutsch English Français Italiano |
<667e40f1$0$7065$882e4bbb@reader.netnews.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news-out.netnews.com!postmaster.netnews.com!us12.netnews.com!not-for-mail X-Trace: DXC=89IXcMVh5hJL`acIL=QImGHWonT5<]0TMQ;nb^V>PUfF`L[ofA1LK4AL]Xbg<imJ2D\M??[m]0\@D3mESbIcX<ROWjB\<Me8\AG@GM\IYO6WZD>Oa:X5b?f8H X-Complaints-To: support@blocknews.net Date: Fri, 28 Jun 2024 00:49:53 -0400 MIME-Version: 1.0 User-Agent: Betterbird (Windows) Subject: Re: Find "py.exe" & copy it to "Python" (flat, no extension). Newsgroups: comp.os.linux.advocacy References: <v24179$1c3qk$2@dont-email.me> <v246gl$1d8oq$3@dont-email.me> <lamt35Fcgq7U4@mid.individual.net> <v26rjl$21vl0$1@dont-email.me> <v2ccjg$39nup$2@dont-email.me> <69sj4j50b5jb8mnbc37b1aopn58vpj0a5q@4ax.com> <v33cu1$ddl1$10@dont-email.me> <2Nj5O.33580$9xU7.24227@fx17.iad> <v36bpp$10k3v$1@dont-email.me> <PKE5O.17601$8CY1.13682@fx37.iad> <v3j4vt$3j4v3$1@dont-email.me> <665d1d57$0$2363138$882e4bbb@reader.netnews.com> <v5dlar$1dttg$2@dont-email.me> <memk7j5epu65t50ajn5vcbamj5s5uku5ig@4ax.com> <v5dpgc$1eh23$6@dont-email.me> <c8xeO.13067$zMs3.416@fx48.iad> <v5eb77$1hofv$1@dont-email.me> <le0f32F1qhiU1@mid.individual.net> <v5gr69$23k0t$1@dont-email.me> <le2ubhFd873U1@mid.individual.net> <667da789$1$7076$882e4bbb@reader.netnews.com> <le6esqFu77dU2@mid.individual.net> <667e06e3$0$2422120$882e4bbb@reader.netnews.com> <le6pq0F1je8U1@mid.individual.net> Content-Language: en-US From: DFS <nospam@dfs.com> In-Reply-To: <le6pq0F1je8U1@mid.individual.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Lines: 33 Message-ID: <667e40f1$0$7065$882e4bbb@reader.netnews.com> NNTP-Posting-Host: 127.0.0.1 X-Trace: 1719550193 reader.netnews.com 7065 127.0.0.1:40447 Bytes: 2584 On 6/27/2024 11:42 PM, rbowman wrote: > On Thu, 27 Jun 2024 20:42:11 -0400, DFS wrote: > >> On 6/27/2024 8:36 PM, rbowman wrote: >>> On Thu, 27 Jun 2024 13:55:22 -0400, DFS wrote: >>> >>>> int main(int argc, char *argv[]) >>>> { >>>> //vars int N = atoi(argv[1]); >>>> int *nums = malloc(N * sizeof(int)); >>>> int i = 0; >>> >>> Lemme see.... How many ways can that go wrong? >> >> >> Where's yours? > > I'll stick with the code review. Assuming the program is called mode > > 'mode' segfault since there isn't an argv[1] > 'mode foo' N is 0. malloc(0) is kind enough to return a pointer. > 'mode -3' malloc returns NULL and if you're lucky you never use nums weak > Thanks you for coming in today. We will let you know one way or the other > when we make our decision. pwned