Opened 12 years ago

Closed 11 years ago

#120 closed enhancement (fixed)

New v.example proposal

Reported by: marisn Owned by: grass-dev@…
Priority: minor Milestone: 6.4.0
Component: Docs Version: svn-trunk
Keywords: example Cc:
CPU: Unspecified Platform: Unspecified

Description

My C programming skills are poor and thus I found v.example not really helpfull. I added some comments to v.example and db related code. I would be happy, if some of GRASS C gurus could have a look at attached v.example version and enhance it to provide best-practise example for new developers.

Attachments (1)

main.c (6.9 KB) - added by marisn 12 years ago.
New v.example version

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by marisn

Attachment: main.c added

New v.example version

comment:1 Changed 11 years ago by neteler

Hi Maris,

I have tried and the patch works. Please submit to SVN...

Markus

comment:2 Changed 11 years ago by marisn

I *know* that this patch works, but as it's an example how GRASS modules should be coded, it has to be work of art with all best-practises etc. I would be happy, if some of GRASS C guru's could also take a look on v.example after applying this patch.

comment:3 Changed 11 years ago by neteler

CPU: Unspecified
Platform: Unspecified
Resolution: fixed
Status: newclosed

Submitted to SVN for easier testing.

Markus

Note: See TracTickets for help on using tickets.