Re: Find "py.exe" & copy it to "Python" (flat, no extension).

Liste des GroupesRevenir à ol advocacy 
Sujet : Re: Find "py.exe" & copy it to "Python" (flat, no extension).
De : nospam (at) *nospam* dfs.com (DFS)
Groupes : comp.os.linux.advocacy
Date : 28. Jun 2024, 05:49:53
Autres entêtes
Message-ID : <667e40f1$0$7065$882e4bbb@reader.netnews.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
User-Agent : Betterbird (Windows)
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

Date Sujet#  Auteur
30 Jun 25 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal