From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Catonano Newsgroups: gmane.lisp.guile.user Subject: Re: unsigned-int Date: Thu, 22 Jun 2017 21:33:31 +0200 Message-ID: References: <87efuchu4b.fsf@netris.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1498160045 21238 195.159.176.226 (22 Jun 2017 19:34:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 22 Jun 2017 19:34:05 +0000 (UTC) Cc: guile-user@gnu.org To: Mark H Weaver Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jun 22 21:34:01 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dO7rc-0005IH-MQ for guile-user@m.gmane.org; Thu, 22 Jun 2017 21:34:00 +0200 Original-Received: from localhost ([::1]:60647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dO7rh-0004Jm-UP for guile-user@m.gmane.org; Thu, 22 Jun 2017 15:34:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dO7rD-0004I7-1k for guile-user@gnu.org; Thu, 22 Jun 2017 15:33:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dO7rB-00080K-Og for guile-user@gnu.org; Thu, 22 Jun 2017 15:33:35 -0400 Original-Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:34537) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dO7rB-0007zb-Hf for guile-user@gnu.org; Thu, 22 Jun 2017 15:33:33 -0400 Original-Received: by mail-wr0-x22d.google.com with SMTP id 77so36843861wrb.1 for ; Thu, 22 Jun 2017 12:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hbJ2c38XnSeQY/IpOY7B5OWwxQmtnAFZp+hW6r0uV80=; b=cA610szk5a6Q8e0H7DpLliEevqpQdvKKfxZ7g8oFD5uX9/qaxp1ZjYT3IdLLwH/tBV hZ9fMOP+BIobyeyGDuQZGjvV4EABnM7d3YfSm9H5s/UBm25dwXj99Tf1VTtDWU4i/nyn qpzPsByMawgwV6v5/UyOaWVo6a/va58PKPAGv95+ccmzZPaRBY4T58Im/oAs2rbtA5OS CPFee71SPiALD5pFF/7sUnb7UZShLTwBdveDw5KEWGs3OeodJmoYcYBKHTDxdsh00wZ9 4i4IKDvRlBnJRcdc7jRyBD0oq1bVWE+gqAOzFBT8A4G0cPxQMyF+kj0kQf02nsMFOA5R BZqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hbJ2c38XnSeQY/IpOY7B5OWwxQmtnAFZp+hW6r0uV80=; b=Ga0mYbBjTtQKgr4gi+itwaV4B9d3ze0nx3HGHAn9qJoJMUD+vmM8uicXH7R8HeOouj cY2SG6p3/RzFPtqV01pDxL0uelbF0kJdgHqsoDXCpdZbBIfWXbuAF5Rp466m1Fy7TfVv H9iX3SonAVCdnbMC5UuRoIZJpOKEuufq9VOlzHu25ApTK56+9m38uX6duPS5cqtCS2TE U3B+yxwmcqgJzXbHmShx781v0nJdRm6XpTKdjhZmxMjF91J90beGq0bx52uyf0UfUDYd o+lW8PA6jYDgX1MOBmsIN5B1VZdA+yOXzUTJuUYI0EMk7R1iJbLQitlw8ExDqk//HwXr G7iw== X-Gm-Message-State: AKS2vOwmp4zN5tqP2lxpiF0mDDilmi6x3DEgOKfO83dBQVjClWy7BAXn y7pohgbojvSStRnmS7//igXj+InfXw== X-Received: by 10.80.137.36 with SMTP id e33mr3781308ede.67.1498160012425; Thu, 22 Jun 2017 12:33:32 -0700 (PDT) Original-Received: by 10.80.131.4 with HTTP; Thu, 22 Jun 2017 12:33:31 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22d X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13868 Archived-At: 2017-06-22 21:13 GMT+02:00 Catonano : > > > I apologize if my questions are naive. > I wrote my last scrap of C code in about 2004 and it never was my thing > Also the manual is a great reference but not a great tutorial and I'm not a great reader, probably. Something that is concerning me is that in the example a "rows" variable and a "columns" variable get declared as unsigned int rows; unsigned short columns; and then they get passed as arguments to freexl_worksheet_dimensions as &rows, &columns like this ret = freexl_worksheet_dimensions (handle, &rows, &columns); In scheme I am NOT declaring anything because I don't now how to I am just passing void pointers to freexl_worksheet_dimensions But when you declare a variable of some type, some memory gets reserved for the value to be contained in that variable, right ? But I am passing void pointers here, so is any memory region being reserved ? I'm afraid not That might be the reason why I get garbage rows numbers. Because I am making it read some random memory region that has been already reserved for something else, that's already populated with God knows what and I am making it interpreting that stuff as numbers. I don't know, I'm speaking freely, here, this is a wild hypothesis I can't make so much sense of this code Please bear with me :-/ Thanks in advance