Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Pd: como crear una lista de nodos enlazada en C.
typedef struct nodo{
struct nodo* siguiente;
void* elemento;
]nodo_t;
typedef struct lista{
nodo_t* inicio;
nodo_t* fin;
size_t tamanio;
}lista_t;
nodo_t* nodo_crear(void* clave){
nodo_t* nodo = calloc(1, sizeof(nodo_t));
if(!nodo) return NULL;
nodo->elemento = clave;
return nodo;
}
lista_t *lista_crear(){
lista_t* lista = calloc(1, sizeof(lista_t));
if(!lista) return NULL;
return lista
}