MESSAGE
DATE | 2016-03-06 |
FROM | Ruben Safir
|
SUBJECT | Re: [Hangout-NYLXS] Announcement: Workshop Organizational Meeting
|
On 03/06/2016 11:19 PM, Asia Suarez wrote:
> Okay consider� vim-gnome and vim-gtk installed.�
good, and now when you type gvim?
> But when I compiled asia.c I� received� no errors.�
On the command line gcc asia.c?
Because that would be very unfortunate. In C all functions come from
expernal libraries and printf is in stdio.h
man 3 printf
and see. 3 is needed because we want the c library and not the
commandline program of the same name.
PRINTF(3) Linux Programmer's Manual
PRINTF(3)
NAME
printf, fprintf, dprintf, sprintf, snprintf, vprintf, vfprintf,
vdprintf, vsprintf,
vsnprintf - formatted output conversion
SYNOPSIS
#include
int printf(const char *format, ...);
int fprintf(FILE *stream, const char *format, ...);
int dprintf(int fd, const char *format, ...);
int sprintf(char *str, const char *format, ...);
int snprintf(char *str, size_t size, const char *format, ...);
#include
int vprintf(const char *format, va_list ap);
int vfprintf(FILE *stream, const char *format, va_list ap);
int vdprintf(int fd, const char *format, va_list ap);
int vsprintf(char *str, const char *format, va_list ap);
int vsnprintf(char *str, size_t size, const char *format, va_list
ap);
> Also, I never learned� arcv argc, which I assume is written as such
> :� int main( int argc, const char* argv[] ). Not sure the purpose of
> that.�
this is all about processes. INTO the program goes argc and argv and
OUT comes an integer. argv and argc are arguments that are command line
options.
like if you do a
myprog.exe 'not pretty print'
then the single arg 'not pretty print' goes into argv[1] (argv[0] is the
program name) and argc is is the number of command line arguments.
Your school is in a rush to get you through their program. I'm trying
to make a programmer out of you.
Reuvain
--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.coinhangout.com - coins!
http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
_______________________________________________
hangout mailing list
hangout-at-nylxs.com
http://www.nylxs.com/
|
|