Deutsch   English   Français   Italiano  
<le6pq0F1je8U1@mid.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: rbowman <bowman@montana.com>
Newsgroups: comp.os.linux.advocacy
Subject: Re: Find "py.exe" & copy it to "Python" (flat, no extension).
Date: 28 Jun 2024 03:42:56 GMT
Lines: 25
Message-ID: <le6pq0F1je8U1@mid.individual.net>
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>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net Xs2suSndOONSNQI0xY3ujQpB+VI1mYDP5/1CBv+k+P4BF5yp+/
Cancel-Lock: sha1:UjkG4h6KZPHjF9SACZX18AQknfA= sha256:5Tw0aGWezcXZX+Hs++xcfhtLpoMZCB8lh0X4af6m7yg=
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Bytes: 2310

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


Thanks you for coming in today. We will let you know one way or the other 
when we make our decision.