{"action":"created","issue":{"url":"https://api.github.com/repos/bcc-ufg-ed1/ListaDEnc/issues/3","labels_url":"https://api.github.com/repos/bcc-ufg-ed1/ListaDEnc/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/bcc-ufg-ed1/ListaDEnc/issues/3/comments","events_url":"https://api.github.com/repos/bcc-ufg-ed1/ListaDEnc/issues/3/events","html_url":"https://github.com/bcc-ufg-ed1/ListaDEnc/issues/3","id":83984417,"number":3,"title":"Mover para o início","user":{"login":"pauloafpjunior","id":5550053,"avatar_url":"https://avatars.githubusercontent.com/u/5550053?v=3","gravatar_id":"","url":"https://api.github.com/users/pauloafpjunior","html_url":"https://github.com/pauloafpjunior","followers_url":"https://api.github.com/users/pauloafpjunior/followers","following_url":"https://api.github.com/users/pauloafpjunior/following{/other_user}","gists_url":"https://api.github.com/users/pauloafpjunior/gists{/gist_id}","starred_url":"https://api.github.com/users/pauloafpjunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauloafpjunior/subscriptions","organizations_url":"https://api.github.com/users/pauloafpjunior/orgs","repos_url":"https://api.github.com/users/pauloafpjunior/repos","events_url":"https://api.github.com/users/pauloafpjunior/events{/privacy}","received_events_url":"https://api.github.com/users/pauloafpjunior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-02T11:42:55Z","updated_at":"2015-06-04T14:29:14Z","closed_at":null,"body":"Desenvolver uma função capaz de mover o elemento do final para o início da lista."},"comment":{"url":"https://api.github.com/repos/bcc-ufg-ed1/ListaDEnc/issues/comments/108915023","html_url":"https://github.com/bcc-ufg-ed1/ListaDEnc/issues/3#issuecomment-108915023","issue_url":"https://api.github.com/repos/bcc-ufg-ed1/ListaDEnc/issues/3","id":108915023,"user":{"login":"pauloafpjunior","id":5550053,"avatar_url":"https://avatars.githubusercontent.com/u/5550053?v=3","gravatar_id":"","url":"https://api.github.com/users/pauloafpjunior","html_url":"https://github.com/pauloafpjunior","followers_url":"https://api.github.com/users/pauloafpjunior/followers","following_url":"https://api.github.com/users/pauloafpjunior/following{/other_user}","gists_url":"https://api.github.com/users/pauloafpjunior/gists{/gist_id}","starred_url":"https://api.github.com/users/pauloafpjunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauloafpjunior/subscriptions","organizations_url":"https://api.github.com/users/pauloafpjunior/orgs","repos_url":"https://api.github.com/users/pauloafpjunior/repos","events_url":"https://api.github.com/users/pauloafpjunior/events{/privacy}","received_events_url":"https://api.github.com/users/pauloafpjunior/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T14:29:14Z","updated_at":"2015-06-04T14:29:14Z","body":"@MarceloGouveia77, se observarmos a função ````removeDoFim````, ela já faz algumas verificações, como se a lista é nula e se ela não está vazia. Assim, podemos chamar diretamente a função e capturar seu retorno. Se ele for OK, a gente continua e insere. Caso contrário, a gente retorna o erro, assim:\r\n````C\r\nint moverDoFimParaInicio(ListaDEnc* lista) {\r\n    int item;\r\n    int ret = removeDoFim(lista, &item);\r\n    if (ret == OK)\r\n        return insereNoInicio(lista, item);\r\n    return ret;\r\n}\r\n````"}}