🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #11779

Segmentation fault

#11779
From: X
Date: Thu, 04 Oct 2001 20:44
31 lines
1253 bytes
�Alguien sabe porque este programa me da un Segmentation Fault? Yo no entiendo
el porqu�.

Saludos.

------------------------------------------------------------------------------
#include <stdio.h>
#include <string.h>

struct kk
{
	int popo;
	char *name;
};


int main()
{
	int n;
	struct kk p;

	strcpy (p.name, "Jamoncito\n");
		
	p.name[3]='=';
	

	printf (p.name);

	return 0;	
}
Technical Details
Message-ID: <lnhip9.bq.ln@xxx.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!poolvisp2-mad-41.ipcom.comunitel.NET!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,b3c8decf211f42e0,start
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-10-04 11:47:24 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!poolvisp2-mad-41.ipcom.comunitel.NET!not-for-mail
From: X <x@xxx.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Segmentation fault
Date: Thu, 4 Oct 2001 22:44:37 +0200
Lines: 32
Sender: <sobrino@xxx.com>
Message-ID: <lnhip9.bq.ln@xxx.com>
NNTP-Posting-Host: poolvisp2-mad-41.ipcom.comunitel.net (212.145.34.41)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1002221242 20195395 212.145.34.41 (16 [105803])
X-Orig-Path: not-for-mail